Spaces:
Build error
Build error
Commit
·
7864b80
1
Parent(s):
7882a8d
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def get_tutor_reply(user_message, chat_tutor):
|
|
62 |
return gr.update(value="", interactive=True), chat_tutor.conversation_memory, chat_tutor
|
63 |
|
64 |
def get_conversation_history(chat_tutor):
|
65 |
-
return chat_tutor.conversation_memory
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
#initialize tutor (with state)
|
@@ -89,7 +89,7 @@ with gr.Blocks() as demo:
|
|
89 |
get_tutor_reply, [user_chat_input, study_tutor], [user_chat_input, chatbot, study_tutor], queue=True)
|
90 |
|
91 |
# Testing purpose
|
92 |
-
gr.Interface(fn=get_conversation_history, inputs=[study_tutor], outputs=[
|
93 |
|
94 |
with gr.Blocks():
|
95 |
gr.Markdown("""
|
|
|
62 |
return gr.update(value="", interactive=True), chat_tutor.conversation_memory, chat_tutor
|
63 |
|
64 |
def get_conversation_history(chat_tutor):
|
65 |
+
return chat_tutor.conversation_memory, chat_tutor
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
#initialize tutor (with state)
|
|
|
89 |
get_tutor_reply, [user_chat_input, study_tutor], [user_chat_input, chatbot, study_tutor], queue=True)
|
90 |
|
91 |
# Testing purpose
|
92 |
+
gr.Interface(fn=get_conversation_history, inputs=[study_tutor], outputs=["text", study_tutor])
|
93 |
|
94 |
with gr.Blocks():
|
95 |
gr.Markdown("""
|