EswariNani commited on
Commit
40445b4
·
verified ·
1 Parent(s): 28afea0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
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}")