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