You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the image is a business card, extract the information and format it as a JSON object with keys: "name", "company", "title", "phone", "email", and "address". If a field is not available, use "N/A".
33
-
If it\'s not a business card, describe the image with scientific detail.
34
-
Do not include any explanatory text in your response if it is a business card, only the JSON object.
29
+
imgage_prompt='''
30
+
Describe this image with scientific detail, reply in zh-TW:
35
31
'''
36
32
37
33
# Vertex AI needs a project ID and possibly authentication
@@ -66,7 +62,7 @@
66
62
# Using a single, powerful multimodal model for both text and images.
67
63
# gemini-2.0-flash is a powerful, cost-effective model for multimodal tasks.
68
64
model=ChatVertexAI(
69
-
model_name="gemini-1.5-flash-001",
65
+
model_name="gemini-2.0-flash",
70
66
project=google_project_id,
71
67
location=google_location,
72
68
# Increased token limit for detailed image descriptions
0 commit comments