Spaces:
Runtime error
Runtime error
Update gen/gemini_chat.py
Browse files- gen/gemini_chat.py +1 -1
gen/gemini_chat.py
CHANGED
@@ -124,7 +124,7 @@ async def gen_text(
|
|
124 |
)
|
125 |
|
126 |
async for resp in resps:
|
127 |
-
print(
|
128 |
async for word in _word_generator(resp.text):
|
129 |
yield word + " "
|
130 |
|
|
|
124 |
)
|
125 |
|
126 |
async for resp in resps:
|
127 |
+
print(resp.candidates[0].finish_reason.name)
|
128 |
async for word in _word_generator(resp.text):
|
129 |
yield word + " "
|
130 |
|