Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -94,6 +94,34 @@ Ask any medical question giving first your symptoms and get answers from our AI
|
|
94 |
Developed by Ruslan Magana. Visit [https://ruslanmv.com/](https://ruslanmv.com/) for more information."""
|
95 |
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
with gr.Blocks(css=css) as interface:
|
98 |
gr.Markdown(welcome_message) # Display the welcome message
|
99 |
|
@@ -107,7 +135,7 @@ with gr.Blocks(css=css) as interface:
|
|
107 |
answer_output = gr.Textbox(type="text", label="Answer")
|
108 |
|
109 |
interface.launch()
|
110 |
-
|
111 |
|
112 |
|
113 |
'''
|
|
|
94 |
Developed by Ruslan Magana. Visit [https://ruslanmv.com/](https://ruslanmv.com/) for more information."""
|
95 |
|
96 |
|
97 |
+
|
98 |
+
|
99 |
+
examples = [
|
100 |
+
["headache", "What are the possible causes of a headache?"],
|
101 |
+
["fever", "How can I treat a fever at home?"],
|
102 |
+
["cough", "What are the symptoms of a cough?"],
|
103 |
+
["chest pain", "What are the possible causes of chest pain?"],
|
104 |
+
]
|
105 |
+
|
106 |
+
|
107 |
+
symptoms_input = gr.Textbox(label="Symptoms")
|
108 |
+
question_input = gr.Textbox(label="Question")
|
109 |
+
answer_output = gr.Textbox(label="Answer")
|
110 |
+
|
111 |
+
|
112 |
+
iface = gr.Interface(
|
113 |
+
fn=askme,
|
114 |
+
inputs=[symptoms_input, question_input],
|
115 |
+
outputs=answer_output,
|
116 |
+
examples=examples,
|
117 |
+
css=css,
|
118 |
+
description=welcome_message # Add the welcome message here
|
119 |
+
)
|
120 |
+
|
121 |
+
iface.launch()
|
122 |
+
|
123 |
+
'''
|
124 |
+
|
125 |
with gr.Blocks(css=css) as interface:
|
126 |
gr.Markdown(welcome_message) # Display the welcome message
|
127 |
|
|
|
135 |
answer_output = gr.Textbox(type="text", label="Answer")
|
136 |
|
137 |
interface.launch()
|
138 |
+
'''
|
139 |
|
140 |
|
141 |
'''
|