Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def load_and_analyze_csv(file, text_field, event_model):
|
|
29 |
flood_related = gr.CheckboxGroup(choices=floods)
|
30 |
not_related = gr.CheckboxGroup(choices=nones)
|
31 |
# time.sleep(5)
|
32 |
-
return
|
33 |
|
34 |
def analyze_selected_texts(selections):
|
35 |
selected_texts = selections
|
@@ -67,7 +67,7 @@ with gr.Blocks() as demo:
|
|
67 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications")
|
68 |
|
69 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
70 |
-
outputs=[
|
71 |
|
72 |
with gr.Tab("Question Answering"):
|
73 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
|
|
29 |
flood_related = gr.CheckboxGroup(choices=floods)
|
30 |
not_related = gr.CheckboxGroup(choices=nones)
|
31 |
# time.sleep(5)
|
32 |
+
return flood_related, fire_related, not_related
|
33 |
|
34 |
def analyze_selected_texts(selections):
|
35 |
selected_texts = selections
|
|
|
67 |
none_checkbox_output = gr.CheckboxGroup(label="Select ONLY incorrect classifications")
|
68 |
|
69 |
predict_button.click(load_and_analyze_csv, inputs=[file_input, text_field, event_model],
|
70 |
+
outputs=[flood_checkbox_output, fire_checkbox_output, none_checkbox_output])
|
71 |
|
72 |
with gr.Tab("Question Answering"):
|
73 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|