Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}")
|