Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update gen/gemini_chat.py
Browse files- gen/gemini_chat.py +1 -0
gen/gemini_chat.py
CHANGED
@@ -124,6 +124,7 @@ async def gen_text(
|
|
124 |
)
|
125 |
|
126 |
async for resp in resps:
|
|
|
127 |
async for word in _word_generator(resp.text):
|
128 |
yield word + " "
|
129 |
|
|
|
124 |
)
|
125 |
|
126 |
async for resp in resps:
|
127 |
+
print(resp.candidate.safety_ratings)
|
128 |
async for word in _word_generator(resp.text):
|
129 |
yield word + " "
|
130 |
|