Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -219,6 +219,7 @@ def chat(id, npc, text):
|
|
| 219 |
output = cleanText(output)
|
| 220 |
print(tokenizer.decode(outputs[0]))
|
| 221 |
print(output)
|
|
|
|
| 222 |
else:
|
| 223 |
output = "no model"
|
| 224 |
|
|
|
|
| 219 |
output = cleanText(output)
|
| 220 |
print(tokenizer.decode(outputs[0]))
|
| 221 |
print(output)
|
| 222 |
+
history[npc][id] += f"\n\n### User:\n{text}\n\n### {npc}:{output}"
|
| 223 |
else:
|
| 224 |
output = "no model"
|
| 225 |
|