arshy commited on
Commit
a6f2fd4
·
1 Parent(s): abd4032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -18,5 +18,16 @@ def predict(inp:str):
18
  text = gr.inputs.Textbox()
19
  output = gr.outputs.Dataframe()
20
 
21
- intf = gr.Interface(fn=predict, inputs=text, outputs=output)
 
 
 
 
 
 
 
 
 
 
 
22
  intf.launch()
 
18
  text = gr.inputs.Textbox()
19
  output = gr.outputs.Dataframe()
20
 
21
+ title="Medical Specialty Classification from Symptoms",
22
+ description = "Given a descriptive prompt of symptoms, the model classifies which medical specialty might the symptoms be related too.",
23
+ examples = ['I have been having a headache for two weeks',
24
+ 'I have rashes on my skin',
25
+ 'I have been coughing for more than a month']
26
+
27
+ intf = gr.Interface(fn=predict,
28
+ inputs=text,
29
+ outputs=output,
30
+ title=title,
31
+ description=description,
32
+ examples, examples)
33
  intf.launch()