Spaces:
Running
Running
Gaurav vashistha commited on
Commit ·
c6137f0
1
Parent(s): bcc921a
Fix: Make analyze_image async to resolve TypeError
Browse files- agents/visual_analyst.py +1 -1
agents/visual_analyst.py
CHANGED
|
@@ -16,7 +16,7 @@ class VisualAnalyst:
|
|
| 16 |
self.model = genai.GenerativeModel(self.model_name)
|
| 17 |
print(f"✅ VisualAnalyst stored Gemini model: {self.model_name}")
|
| 18 |
|
| 19 |
-
def analyze_image(self, image_path: str):
|
| 20 |
try:
|
| 21 |
# Upload the file to Gemini
|
| 22 |
# Note: For efficiency in production, files should be managed (uploads/deletes)
|
|
|
|
| 16 |
self.model = genai.GenerativeModel(self.model_name)
|
| 17 |
print(f"✅ VisualAnalyst stored Gemini model: {self.model_name}")
|
| 18 |
|
| 19 |
+
async def analyze_image(self, image_path: str):
|
| 20 |
try:
|
| 21 |
# Upload the file to Gemini
|
| 22 |
# Note: For efficiency in production, files should be managed (uploads/deletes)
|