Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,54 +0,0 @@
|
|
| 1 |
-
'''import streamlit as st
|
| 2 |
-
from virtualhealth import handle_user_query # Import your function
|
| 3 |
-
|
| 4 |
-
st.set_page_config(page_title="AI Health Assistant", page_icon="๐ฉบ")
|
| 5 |
-
|
| 6 |
-
st.title("๐ฉบ AI Health Assistant")
|
| 7 |
-
st.write("Ask any medical-related questions below:")
|
| 8 |
-
|
| 9 |
-
# User Input
|
| 10 |
-
user_input = st.text_input("Your Question:")
|
| 11 |
-
|
| 12 |
-
# Button to Process Query
|
| 13 |
-
if st.button("Ask"):
|
| 14 |
-
bot_response = handle_user_query(user_input) # Call function directly
|
| 15 |
-
st.markdown(f"**๐ค Bot:** {bot_response}")'''
|
| 16 |
-
import streamlit as st
|
| 17 |
-
from virtualhealth import handle_user_query # Import your function
|
| 18 |
-
|
| 19 |
-
st.set_page_config(page_title="AI Health Assistant", page_icon="๐ฉบ")
|
| 20 |
-
|
| 21 |
-
st.title("๐ฉบ AI Health Assistant")
|
| 22 |
-
st.write("Ask any medical-related questions below:")
|
| 23 |
-
|
| 24 |
-
# User Input
|
| 25 |
-
user_input = st.text_input("Your Question:")
|
| 26 |
-
|
| 27 |
-
# Button to Process Query
|
| 28 |
-
if st.button("Ask"):
|
| 29 |
-
bot_response = handle_user_query(user_input) # Call function directly
|
| 30 |
-
st.markdown(f"**๐ค Bot:** {bot_response}")
|
| 31 |
-
|
| 32 |
-
# ============================
|
| 33 |
-
# ๐น Run Test Cases Automatically
|
| 34 |
-
# ============================
|
| 35 |
-
test_cases = [
|
| 36 |
-
"I have fever, chills, and muscle aches",
|
| 37 |
-
"What are the symptoms of pneumonia?",
|
| 38 |
-
"Book an appointment for diabetes",
|
| 39 |
-
"Who should I see for heart attack?",
|
| 40 |
-
"What is the treatment for tuberculosis?",
|
| 41 |
-
"I have nausea, vomiting, and abdominal pain",
|
| 42 |
-
"What are the precautions for malaria?",
|
| 43 |
-
"Who should I see for hepatitis B?",
|
| 44 |
-
"Book an appointment for pneumonia",
|
| 45 |
-
"What is the treatment for migraine?"
|
| 46 |
-
]
|
| 47 |
-
|
| 48 |
-
st.subheader("๐ Sample Test Cases")
|
| 49 |
-
for query in test_cases:
|
| 50 |
-
response = handle_user_query(query)
|
| 51 |
-
st.markdown(f"**๐ Query:** {query}\n**๐ค Response:** {response}")
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|