Spaces:
Sleeping
Sleeping
Commit
•
c441bd3
1
Parent(s):
7e26d80
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 |
-
examples = [['Weakness,Stomach pain,Headache,'],['
|
34 |
demo=gr.Interface(fn=detect_symptom,inputs='text',outputs='label',examples=examples,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,'],['fatigue,Have blurry vision,Have numb or tingling hands or feet,Have very dry skin.'],[' 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()
|