Spaces:
Sleeping
Sleeping
Joachim M. Vis commited on
Upload app.py
Browse files
app.py
CHANGED
|
@@ -243,7 +243,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 243 |
elem_id="status_output"
|
| 244 |
)
|
| 245 |
|
| 246 |
-
|
|
|
|
| 247 |
results_table = gr.DataFrame(
|
| 248 |
label="Questions and Agent Answers",
|
| 249 |
wrap=True,
|
|
@@ -323,8 +324,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 323 |
inputs=[results_table],
|
| 324 |
outputs=[stats_output]
|
| 325 |
).then(
|
| 326 |
-
fn=lambda: gr.update(open=True),
|
| 327 |
-
outputs=[
|
| 328 |
)
|
| 329 |
|
| 330 |
if __name__ == "__main__":
|
|
|
|
| 243 |
elem_id="status_output"
|
| 244 |
)
|
| 245 |
|
| 246 |
+
results_accordion = gr.Accordion("Results", open=False, elem_id="results_accordion")
|
| 247 |
+
with results_accordion:
|
| 248 |
results_table = gr.DataFrame(
|
| 249 |
label="Questions and Agent Answers",
|
| 250 |
wrap=True,
|
|
|
|
| 324 |
inputs=[results_table],
|
| 325 |
outputs=[stats_output]
|
| 326 |
).then(
|
| 327 |
+
fn=lambda: gr.update(open=True, visible=True),
|
| 328 |
+
outputs=[results_accordion]
|
| 329 |
)
|
| 330 |
|
| 331 |
if __name__ == "__main__":
|