Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def chat_inf(system_prompt,prompt,history):
|
|
41 |
for response in stream:
|
42 |
output += response.token.text
|
43 |
if history:
|
44 |
-
history[
|
45 |
hist=history
|
46 |
#hist=[history,(prompt,output)]
|
47 |
else:
|
|
|
41 |
for response in stream:
|
42 |
output += response.token.text
|
43 |
if history:
|
44 |
+
history[-1]=[(prompt,output)]
|
45 |
hist=history
|
46 |
#hist=[history,(prompt,output)]
|
47 |
else:
|