Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -175,9 +175,9 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
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()
|
182 |
res_box.markdown(f'*{result}*')
|
183 |
except:
|
|
|
175 |
collected_messages.append(chunk_message) # save the message
|
176 |
content=part.choices[0].delta.content
|
177 |
try:
|
|
|
|
|
178 |
if len(content) > 0:
|
179 |
+
report.append(content)
|
180 |
+
all_content += content
|
181 |
result = "".join(report).strip()
|
182 |
res_box.markdown(f'*{result}*')
|
183 |
except:
|