3v324v23 commited on
Commit
68e749a
·
1 Parent(s): f822b38
Files changed (1) hide show
  1. 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