Spaces:
Sleeping
Sleeping
???
Browse files- text2image.py +1 -1
text2image.py
CHANGED
|
@@ -12,7 +12,7 @@ def explain_image(image: Image.Image):
|
|
| 12 |
# 直接把 PIL image 傳進去
|
| 13 |
response = client.models.generate_content(
|
| 14 |
model="gemini-2.0-flash",
|
| 15 |
-
contents=[image, "
|
| 16 |
)
|
| 17 |
# 取出回答
|
| 18 |
explanation = response.text
|
|
|
|
| 12 |
# 直接把 PIL image 傳進去
|
| 13 |
response = client.models.generate_content(
|
| 14 |
model="gemini-2.0-flash",
|
| 15 |
+
contents=[image, "使用繁體中文描述這張圖片"],
|
| 16 |
)
|
| 17 |
# 取出回答
|
| 18 |
explanation = response.text
|