awacke1 commited on
Commit
1dec5ae
·
1 Parent(s): d36cb08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -179,14 +179,14 @@ def StreamLLMChatResponse(prompt):
179
  collected_chunks.append(r.token.text)
180
  chunk_message = r.token.text
181
  collected_messages.append(chunk_message)
182
- try:
183
- report.append(r.token.text)
184
- if len(r.token.text) > 0:
185
- result="".join(report).strip()
186
- res_box.markdown(f'*{result}*')
187
-
188
- except:
189
- st.write('Stream llm issue')
190
  SpeechSynthesis(result)
191
  return result
192
  except:
 
179
  collected_chunks.append(r.token.text)
180
  chunk_message = r.token.text
181
  collected_messages.append(chunk_message)
182
+ #try:
183
+ report.append(r.token.text)
184
+ if len(r.token.text) > 0:
185
+ result="".join(report).strip()
186
+ res_box.markdown(f'*{result}*')
187
+
188
+ #except:
189
+ #st.write('Stream llm issue')
190
  SpeechSynthesis(result)
191
  return result
192
  except: