Spaces:
Runtime error
Runtime error
Commit
·
ef08bd0
1
Parent(s):
dab2893
testing insert instead of append
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def vicuna_respond(tab_name, message, chat_history):
|
|
72 |
bot_message = bot_message.replace(formatted_prompt, '')
|
73 |
print(bot_message)
|
74 |
|
75 |
-
chat_history.
|
76 |
time.sleep(2)
|
77 |
return tab_name, "", chat_history
|
78 |
|
@@ -88,7 +88,7 @@ def llama_respond(tab_name, message, chat_history):
|
|
88 |
bot_message = bot_message.replace(formatted_prompt, '')
|
89 |
# print(bot_message)
|
90 |
|
91 |
-
chat_history.
|
92 |
time.sleep(2)
|
93 |
return tab_name, "", chat_history
|
94 |
|
|
|
72 |
bot_message = bot_message.replace(formatted_prompt, '')
|
73 |
print(bot_message)
|
74 |
|
75 |
+
chat_history.insert(0, (formatted_prompt, bot_message))
|
76 |
time.sleep(2)
|
77 |
return tab_name, "", chat_history
|
78 |
|
|
|
88 |
bot_message = bot_message.replace(formatted_prompt, '')
|
89 |
# print(bot_message)
|
90 |
|
91 |
+
chat_history.insert(0, (formatted_prompt, bot_message))
|
92 |
time.sleep(2)
|
93 |
return tab_name, "", chat_history
|
94 |
|