Update main.py
Browse files
main.py
CHANGED
@@ -112,9 +112,8 @@ def generate_image_with_gemini(prompt):
|
|
112 |
|
113 |
for part in response.candidates[0].content.parts:
|
114 |
if part.text is not None:
|
115 |
-
|
116 |
elif part.inline_data is not None:
|
117 |
-
#image = PIL.Image.open(io.BytesIO(part.inline_data.data))
|
118 |
return part.inline_data.data
|
119 |
return
|
120 |
|
|
|
112 |
|
113 |
for part in response.candidates[0].content.parts:
|
114 |
if part.text is not None:
|
115 |
+
print(part.text)
|
116 |
elif part.inline_data is not None:
|
|
|
117 |
return part.inline_data.data
|
118 |
return
|
119 |
|