Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,13 +160,12 @@ with gr.Blocks() as demo:
|
|
| 160 |
|
| 161 |
qa_tab = gr.Tab("Question Answering")
|
| 162 |
|
| 163 |
-
|
| 164 |
with qa_tab:
|
| 165 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
| 166 |
|
| 167 |
-
|
| 168 |
-
|
| 169 |
selected_queries = gr.CheckboxGroup(label="Select at least one query using the checkboxes", interactive=True)
|
|
|
|
| 170 |
qa_button = gr.Button("Start QA")
|
| 171 |
analysis_output = gr.DataFrame(headers=["Selected Text", "Analysis"])
|
| 172 |
qa_button.click(qa_process, inputs=selected_queries, outputs=analysis_output)
|
|
|
|
| 160 |
|
| 161 |
qa_tab = gr.Tab("Question Answering")
|
| 162 |
|
| 163 |
+
|
| 164 |
with qa_tab:
|
| 165 |
# XXX Add some button disabling here, if the classification process is not completed first XXX
|
| 166 |
|
|
|
|
|
|
|
| 167 |
selected_queries = gr.CheckboxGroup(label="Select at least one query using the checkboxes", interactive=True)
|
| 168 |
+
qa_tab.select(get_queries, None, selected_queries)
|
| 169 |
qa_button = gr.Button("Start QA")
|
| 170 |
analysis_output = gr.DataFrame(headers=["Selected Text", "Analysis"])
|
| 171 |
qa_button.click(qa_process, inputs=selected_queries, outputs=analysis_output)
|