Spaces:
Sleeping
Sleeping
raghuram13
commited on
Commit
•
34fb333
1
Parent(s):
58ae2ff
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,6 @@ def detect_symptom(symptoms):
|
|
30 |
output=pipe(symptoms)[0]
|
31 |
label=id2_label[output['label']]
|
32 |
return f"You are suffering from {label} disease."
|
33 |
-
|
34 |
-
demo=gr.Interface(fn=detect_symptom,inputs='text',outputs='label',title="MEDICAL DIAGNOSIS")
|
35 |
demo.launch()
|
|
|
30 |
output=pipe(symptoms)[0]
|
31 |
label=id2_label[output['label']]
|
32 |
return f"You are suffering from {label} disease."
|
33 |
+
examples = [['Weakness,Stomach pain,Headache,'],['Urinate (pee) a lot, often at night,Are very thirsty,'],[' raised red spots','sore throat','loss of appetite']]
|
34 |
+
demo=gr.Interface(fn=detect_symptom,inputs='text',outputs='label',examples=examples,title="MEDICAL DIAGNOSIS")
|
35 |
demo.launch()
|