Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def predict(sample, validate=True):
|
|
21 |
return pred
|
22 |
|
23 |
title = "Symptoms and Disease"
|
24 |
-
description = "Enter the Symptoms to know the
|
25 |
|
26 |
# Gradio elements
|
27 |
|
@@ -34,7 +34,9 @@ out_response = gradio.outputs.Textbox(label='Disease')
|
|
34 |
# Gradio interface to generate UI link
|
35 |
iface = gradio.Interface(fn=predict,
|
36 |
inputs = in_prompt,
|
37 |
-
outputs = out_response
|
|
|
|
|
38 |
)
|
39 |
|
40 |
iface.launch(debug = True)
|
|
|
21 |
return pred
|
22 |
|
23 |
title = "Symptoms and Disease"
|
24 |
+
description = "Enter the Symptoms to know the disease"
|
25 |
|
26 |
# Gradio elements
|
27 |
|
|
|
34 |
# Gradio interface to generate UI link
|
35 |
iface = gradio.Interface(fn=predict,
|
36 |
inputs = in_prompt,
|
37 |
+
outputs = out_response,
|
38 |
+
title=title,
|
39 |
+
description=description
|
40 |
)
|
41 |
|
42 |
iface.launch(debug = True)
|