Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -206,6 +206,8 @@ def add_message(history, message):
|
|
206 |
|
207 |
@spaces.GPU
|
208 |
def bot(history):
|
|
|
|
|
209 |
text = history[-1][0]
|
210 |
images_this_term = []
|
211 |
text_this_term = ""
|
@@ -358,6 +360,8 @@ def bot(history):
|
|
358 |
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
359 |
history[-1] = [text, "".join(outputs)]
|
360 |
yield history
|
|
|
|
|
361 |
|
362 |
with open(get_conv_log_filename(), "a") as fout:
|
363 |
data = {
|
|
|
206 |
|
207 |
@spaces.GPU
|
208 |
def bot(history):
|
209 |
+
print("### turn start history",history)
|
210 |
+
print("### turn start conv",our_chatbot.conversation)
|
211 |
text = history[-1][0]
|
212 |
images_this_term = []
|
213 |
text_this_term = ""
|
|
|
360 |
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
361 |
history[-1] = [text, "".join(outputs)]
|
362 |
yield history
|
363 |
+
print("### turn end history", history)
|
364 |
+
print("### turn end conv",our_chatbot.conversation)
|
365 |
|
366 |
with open(get_conv_log_filename(), "a") as fout:
|
367 |
data = {
|