Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,8 +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:
|
| 48 |
hist=[(prompt,output)]
|
|
|
|
| 41 |
for response in stream:
|
| 42 |
output += response.token.text
|
| 43 |
if history:
|
| 44 |
+
hist=[history[:hist_len],(prompt,output)]
|
|
|
|
| 45 |
#hist=[history,(prompt,output)]
|
| 46 |
else:
|
| 47 |
hist=[(prompt,output)]
|