awacke1 commited on
Commit
6c0f6c1
·
1 Parent(s): 5248728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: