Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,5 +18,16 @@ def predict(inp:str):
|
|
18 |
text = gr.inputs.Textbox()
|
19 |
output = gr.outputs.Dataframe()
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|