Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,20 +29,19 @@ def predict(sample, validate=True):
|
|
29 |
|
30 |
def make_block(dem):
|
31 |
with dem:
|
32 |
-
gr.Markdown(""
|
33 |
-
# Ejemplo de `space` multiclassifier: Curso Platzi""")
|
34 |
with gr.Tabs():
|
35 |
-
with gr.TabItem("
|
36 |
with gr.Row():
|
37 |
in_prompt_1 = gr.components.Textbox(lines=10, placeholder=None, label='Enter review text')
|
38 |
out_response_1 = gr.components.Textbox(type="text", label='Sentiment')
|
39 |
-
b1 = gr.Button("
|
40 |
|
41 |
-
with gr.TabItem("
|
42 |
with gr.Row():
|
43 |
in_prompt_2 = gr.components.Textbox(lines=2, label='Enter the Symptoms')
|
44 |
out_response_2 = gr.components.Textbox(label='Disease')
|
45 |
-
b2 = gr.Button("
|
46 |
b1.click(predict_sentiment, inputs=in_prompt_1, outputs=out_response_1)
|
47 |
b2.click(predict, inputs=in_prompt_2, outputs=out_response_2)
|
48 |
|
|
|
29 |
|
30 |
def make_block(dem):
|
31 |
with dem:
|
32 |
+
gr.Markdown("Practicing for Capstone")
|
|
|
33 |
with gr.Tabs():
|
34 |
+
with gr.TabItem("Sentiment Classification"):
|
35 |
with gr.Row():
|
36 |
in_prompt_1 = gr.components.Textbox(lines=10, placeholder=None, label='Enter review text')
|
37 |
out_response_1 = gr.components.Textbox(type="text", label='Sentiment')
|
38 |
+
b1 = gr.Button("Enter")
|
39 |
|
40 |
+
with gr.TabItem("Symptoms and Disease Classification"):
|
41 |
with gr.Row():
|
42 |
in_prompt_2 = gr.components.Textbox(lines=2, label='Enter the Symptoms')
|
43 |
out_response_2 = gr.components.Textbox(label='Disease')
|
44 |
+
b2 = gr.Button("Enter")
|
45 |
b1.click(predict_sentiment, inputs=in_prompt_1, outputs=out_response_1)
|
46 |
b2.click(predict, inputs=in_prompt_2, outputs=out_response_2)
|
47 |
|