Spaces:
Runtime error
Runtime error
Update app.py
Browse files171 unmodified lines172173174175176177178171 unmodified linesfor part in stream:chunk_message = (part.choices[0].delta.content or "")collected_messages.append(chunk_message) # save the messagecontent=chunk["choices"][0].get("delta",{}).get("content")try:report.append(content)if len(content) > 0:171 unmodified lines172173174175176177178171 unmodified linesfor part in stream:chunk_message = (part.choices[0].delta.content or "")collected_messages.append(chunk_message) # save the messagecontent=part["choices"][0].get("delta",{}).get("content")try:report.append(content)if len(content) > 0:
app.py+1-1