gregH commited on
Commit
7a1f52d
1 Parent(s): 7a2295f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -204,8 +204,9 @@ def chat(message, history, with_defense,threshold):
204
 
205
  # Initialize an empty string to store the generated text
206
  partial_text = ""
207
- for new_text in response:
208
- partial_text += new_text
 
209
  yield partial_text
210
 
211
 
 
204
 
205
  # Initialize an empty string to store the generated text
206
  partial_text = ""
207
+ response_split=response.split(" ")
208
+ for new_text in response_split:
209
+ partial_text += (new_text+" ")
210
  yield partial_text
211
 
212