Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -174,8 +174,8 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
174 |
chunk_message = (part.choices[0].delta.content or "")
|
175 |
collected_messages.append(chunk_message) # save the message
|
176 |
content=part.choices[0].delta.content
|
177 |
-
all_content += content
|
178 |
try:
|
|
|
179 |
report.append(content)
|
180 |
if len(content) > 0:
|
181 |
result = "".join(report).strip()
|
|
|
174 |
chunk_message = (part.choices[0].delta.content or "")
|
175 |
collected_messages.append(chunk_message) # save the message
|
176 |
content=part.choices[0].delta.content
|
|
|
177 |
try:
|
178 |
+
all_content += content
|
179 |
report.append(content)
|
180 |
if len(content) > 0:
|
181 |
result = "".join(report).strip()
|