Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,6 +283,7 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 283 |
QA_run_button = gr.Button("Start QA", interactive=False)
|
| 284 |
hsummary = gr.Textbox(label="Summary")
|
| 285 |
|
|
|
|
| 286 |
with gr.Group():
|
| 287 |
with gr.Row():
|
| 288 |
with gr.Column(scale=7):
|
|
@@ -428,8 +429,8 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 428 |
inputs=[selected_queries, qa_llm_model, T_text_field, T_data_ss_state],
|
| 429 |
outputs=[hsummary, qa_df])
|
| 430 |
|
| 431 |
-
qa_df.select(T_on_select, None,
|
| 432 |
-
|
| 433 |
|
| 434 |
|
| 435 |
# Event listener for single text classification
|
|
|
|
| 283 |
QA_run_button = gr.Button("Start QA", interactive=False)
|
| 284 |
hsummary = gr.Textbox(label="Summary")
|
| 285 |
|
| 286 |
+
qa_tweetID = gr.Textbox(visible=False)
|
| 287 |
with gr.Group():
|
| 288 |
with gr.Row():
|
| 289 |
with gr.Column(scale=7):
|
|
|
|
| 429 |
inputs=[selected_queries, qa_llm_model, T_text_field, T_data_ss_state],
|
| 430 |
outputs=[hsummary, qa_df])
|
| 431 |
|
| 432 |
+
qa_df.select(T_on_select, None, qa_tweetID)
|
| 433 |
+
qa_tweetID.change(fn=None, inputs=qa_tweetID, outputs=None, js=m2_js)
|
| 434 |
|
| 435 |
|
| 436 |
# Event listener for single text classification
|