Spaces:
Runtime error
Runtime error
Update gen/gemini_chat.py
Browse files- 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
|