Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ class ImageDescriptionTool(Tool):
|
|
56 |
try:
|
57 |
image_file = self.client.files.upload(file=f"{file_name}")
|
58 |
image_description = self.client.models.generate_content(
|
59 |
-
model="gemini-2.0-flash", contents=["Describe this audio clip",
|
60 |
)
|
61 |
return image_description.text
|
62 |
except Exception as e:
|
|
|
56 |
try:
|
57 |
image_file = self.client.files.upload(file=f"{file_name}")
|
58 |
image_description = self.client.models.generate_content(
|
59 |
+
model="gemini-2.0-flash", contents=["Describe this audio clip", image_file]
|
60 |
)
|
61 |
return image_description.text
|
62 |
except Exception as e:
|