Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -242,6 +242,7 @@ def bot(history, job, resume, job_params):
|
|
242 |
|
243 |
history[-1][1] = ""
|
244 |
for chunk in response:
|
|
|
245 |
if len(chunk["choices"][0]["delta"]) != 0 and hasattr(chunk["choices"][0]["delta"], "content"):
|
246 |
history[-1][1] = history[-1][1] + chunk["choices"][0]["delta"]["content"]
|
247 |
yield history
|
|
|
242 |
|
243 |
history[-1][1] = ""
|
244 |
for chunk in response:
|
245 |
+
print(chunk)
|
246 |
if len(chunk["choices"][0]["delta"]) != 0 and hasattr(chunk["choices"][0]["delta"], "content"):
|
247 |
history[-1][1] = history[-1][1] + chunk["choices"][0]["delta"]["content"]
|
248 |
yield history
|