chansung commited on
Commit
48af876
β€’
1 Parent(s): cf6b70e

Update gen/gemini_chat.py

Browse files
Files changed (1) hide show
  1. gen/gemini_chat.py +1 -1
gen/gemini_chat.py CHANGED
@@ -100,7 +100,7 @@ def _default_safety_settings():
100
  ]
101
 
102
  async def _word_generator(sentence):
103
- for word in sentence.split():
104
  yield word
105
  delay = 0.03 + (len(word) * 0.005)
106
  await asyncio.sleep(delay) # Simulate a short delay
 
100
  ]
101
 
102
  async def _word_generator(sentence):
103
+ for word in sentence.split(" "):
104
  yield word
105
  delay = 0.03 + (len(word) * 0.005)
106
  await asyncio.sleep(delay) # Simulate a short delay