Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 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:
|