brunhild217 commited on
Commit
8ddef28
·
1 Parent(s): 265877f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -74,9 +74,10 @@ with gr.Blocks() as demo:
74
  export_dialogue_button_csv.click(save_csv, study_tutor, file_download, show_progress=True)
75
 
76
  # Testing the chat history storage, can be deleted at deployment
77
- test_btn = gr.Button("View your chat history")
78
- chat_history = gr.JSON(label = "conversation history")
79
- test_btn.click(get_conversation_history, inputs=[study_tutor], outputs=[chat_history, study_tutor])
 
80
 
81
  # Instructor interface
82
  with gr.Tab("Instructor Only"):
 
74
  export_dialogue_button_csv.click(save_csv, study_tutor, file_download, show_progress=True)
75
 
76
  # Testing the chat history storage, can be deleted at deployment
77
+ with gr.Blocks():
78
+ test_btn = gr.Button("View your chat history")
79
+ chat_history = gr.JSON(label = "conversation history")
80
+ test_btn.click(get_conversation_history, inputs=[study_tutor], outputs=[chat_history, study_tutor])
81
 
82
  # Instructor interface
83
  with gr.Tab("Instructor Only"):