Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,6 +254,7 @@ def chat(id, npc, text):
|
|
254 |
]
|
255 |
)
|
256 |
output = response.choices[0].message.content
|
|
|
257 |
print(output)
|
258 |
history[npc][id] += f"\n\n### User:\n{text}\n\n### {npc}:{output}"
|
259 |
else:
|
|
|
254 |
]
|
255 |
)
|
256 |
output = response.choices[0].message.content
|
257 |
+
output = output.replace(".",".\n")
|
258 |
print(output)
|
259 |
history[npc][id] += f"\n\n### User:\n{text}\n\n### {npc}:{output}"
|
260 |
else:
|