Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,14 +36,16 @@ def predict_symptom(text):
|
|
| 36 |
# Define Gradio interface
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=predict_symptom,
|
| 39 |
-
inputs=gr.
|
| 40 |
outputs=[
|
| 41 |
-
gr.
|
| 42 |
-
gr.
|
| 43 |
],
|
| 44 |
title="Symptom Checker",
|
| 45 |
description="Enter your symptoms to get a predicted medical condition."
|
| 46 |
)
|
| 47 |
|
|
|
|
|
|
|
| 48 |
if __name__ == "__main__":
|
| 49 |
iface.launch()
|
|
|
|
| 36 |
# Define Gradio interface
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=predict_symptom,
|
| 39 |
+
inputs=gr.Textbox(lines=2, placeholder="Describe your symptoms here..."),
|
| 40 |
outputs=[
|
| 41 |
+
gr.Textbox(label="Predicted Condition"),
|
| 42 |
+
gr.Textbox(label="Confidence Level")
|
| 43 |
],
|
| 44 |
title="Symptom Checker",
|
| 45 |
description="Enter your symptoms to get a predicted medical condition."
|
| 46 |
)
|
| 47 |
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
if __name__ == "__main__":
|
| 51 |
iface.launch()
|