Spaces:
Build error
Build error
Commit
·
8ddef28
1
Parent(s):
265877f
Update app.py
Browse files
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 |
-
|
78 |
-
|
79 |
-
|
|
|
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"):
|