Lech-Iyoko commited on
Commit
8a6d080
·
verified ·
1 Parent(s): b13ff14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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.inputs.Textbox(lines=2, placeholder="Describe your symptoms here..."),
40
  outputs=[
41
- gr.outputs.Textbox(label="Predicted Condition"),
42
- gr.outputs.Textbox(label="Confidence Level")
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()