Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,12 +44,23 @@ iface_1 = gradio.Interface(fn = predict_sentiment,
|
|
44 |
title = title_1,
|
45 |
description = description_1)
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
title="Multiple Models Interface",
|
50 |
-
description="This interface showcases multiple models"
|
51 |
-
)
|
52 |
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
#iface.launch(debug = True)#, server_name = "0.0.0.0", server_port = 8001) # Ref. for parameters: https://www.gradio.app/docs/interface
|
|
|
44 |
title = title_1,
|
45 |
description = description_1)
|
46 |
|
47 |
+
title_2 = "Symptoms and Disease"
|
48 |
+
description_2 = "Enter the Symptoms to know the disease"
|
|
|
|
|
|
|
49 |
|
50 |
+
# Input from user
|
51 |
+
in_prompt_2 = gradio.components.Textbox(lines=2, label='Enter the Symptoms')
|
52 |
+
|
53 |
+
# Output response
|
54 |
+
out_response_2 = gradio.components.Textbox(label='Disease')
|
55 |
+
|
56 |
+
# Gradio interface to generate UI link
|
57 |
+
iface_2 = gradio.Interface(fn=predict,
|
58 |
+
inputs = [in_prompt_2],
|
59 |
+
outputs = [out_response_2],
|
60 |
+
title=title_2,
|
61 |
+
description=description_2
|
62 |
+
)
|
63 |
+
|
64 |
+
iface_1.launch(debug = True)
|
65 |
|
66 |
#iface.launch(debug = True)#, server_name = "0.0.0.0", server_port = 8001) # Ref. for parameters: https://www.gradio.app/docs/interface
|