Update app.py
Browse files
app.py
CHANGED
|
@@ -86,6 +86,15 @@ with gr.Blocks() as demo:
|
|
| 86 |
inputs=None, # we only use the event data
|
| 87 |
outputs=[q_box, a_box, current_id_state, status_md],
|
| 88 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
demo.launch()
|
|
|
|
| 86 |
inputs=None, # we only use the event data
|
| 87 |
outputs=[q_box, a_box, current_id_state, status_md],
|
| 88 |
)
|
| 89 |
+
# πππ ADD THIS NEW BLOCK HERE πππ
|
| 90 |
+
# This ensures that whenever the page is refreshed, the table updates
|
| 91 |
+
# to show the REAL current data from memory.
|
| 92 |
+
demo.load(
|
| 93 |
+
fn=manual_qa_table_data,
|
| 94 |
+
inputs=None,
|
| 95 |
+
outputs=qa_table
|
| 96 |
+
)
|
| 97 |
+
# πππ END OF NEW BLOCK πππ
|
| 98 |
|
| 99 |
if __name__ == "__main__":
|
| 100 |
demo.launch()
|