Spaces:
Build error
Build error
minor midi
Browse files9 unmodified lines10111213141516179 unmodified lines# 定義「圖解釋文」功能def explain_image(image: Image.Image):# 直接把 PIL image 傳進去response = client.generate_content(contents=[image, "請用繁體中文描述這張圖片"])# 取出回答explanation = response.text9 unmodified lines1011121314151617189 unmodified lines# 定義「圖解釋文」功能def explain_image(image: Image.Image):# 直接把 PIL image 傳進去response = client.models.generate_content(model="gemini-2.0-flash",contents=[image, "用繁體中文描述這張圖片"],)# 取出回答explanation = response.text
text2image.py+3-2