|
import os |
|
import subprocess |
|
|
|
|
|
missing_packages = ["xgboost"] |
|
for package in missing_packages: |
|
try: |
|
__import__(package) |
|
except ImportError: |
|
subprocess.call(["pip", "install", package]) |
|
|
|
from virtualhealth import handle_user_query |
|
import streamlit as st |
|
|
|
st.set_page_config(page_title="AI Health Assistant", page_icon="🩺") |
|
|
|
st.title("🩺 AI Health Assistant") |
|
st.write("Ask any medical-related questions below:") |
|
|
|
|
|
user_input = st.text_input("Your Question:") |
|
|
|
|
|
if st.button("Ask"): |
|
bot_response = handle_user_query(user_input) |
|
st.markdown(f"**🤖 Bot:** {bot_response}") |
|
|