Spaces:
Build error
Build error
Commit
Β·
a507faa
1
Parent(s):
4c74c8f
Thread creation updated
Browse files
app.py
CHANGED
|
@@ -88,6 +88,7 @@ def main(query, history):
|
|
| 88 |
with gr.Blocks() as iface:
|
| 89 |
with gr.Tab("MeroHealthAI Chatbot"):
|
| 90 |
# gr.Markdown("MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis")
|
|
|
|
| 91 |
symptom_chatbot = gr.ChatInterface(
|
| 92 |
main,
|
| 93 |
clear_btn="Find Relevant Doctors"
|
|
@@ -101,7 +102,7 @@ with gr.Blocks() as iface:
|
|
| 101 |
with gr.Tab("Contact Doctor "):
|
| 102 |
profession_key = gr.Textbox(label="Profession", interactive=True)
|
| 103 |
doc_info = gr.Textbox(label="Doctor Information") # Define textbox globally
|
| 104 |
-
|
| 105 |
gr.Button("Find Relevant Doctors").click(
|
| 106 |
# Pass textbox element directly
|
| 107 |
Doctor.display_profession,
|
|
|
|
| 88 |
with gr.Blocks() as iface:
|
| 89 |
with gr.Tab("MeroHealthAI Chatbot"):
|
| 90 |
# gr.Markdown("MeroHealthAI is an AI assited chatbot that gathers symptoms from the user, documents it and sends it to the nearest most relevant doctor available. Our app also suppors medical report analysis")
|
| 91 |
+
gr.State(value=None)
|
| 92 |
symptom_chatbot = gr.ChatInterface(
|
| 93 |
main,
|
| 94 |
clear_btn="Find Relevant Doctors"
|
|
|
|
| 102 |
with gr.Tab("Contact Doctor "):
|
| 103 |
profession_key = gr.Textbox(label="Profession", interactive=True)
|
| 104 |
doc_info = gr.Textbox(label="Doctor Information") # Define textbox globally
|
| 105 |
+
|
| 106 |
gr.Button("Find Relevant Doctors").click(
|
| 107 |
# Pass textbox element directly
|
| 108 |
Doctor.display_profession,
|