Heng2004 commited on
Commit
ab33eee
Β·
verified Β·
1 Parent(s): 5f0bb8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()