Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -354,7 +354,7 @@ class ImageAnalysisTool(Tool):
|
|
354 |
# or an instance attribute if it could vary per instance.
|
355 |
# For this example, we'll keep it within the _run method for directness.
|
356 |
|
357 |
-
def
|
358 |
"""
|
359 |
Executes the image analysis by sending the image URL to the Hugging Face API.
|
360 |
"""
|
|
|
354 |
# or an instance attribute if it could vary per instance.
|
355 |
# For this example, we'll keep it within the _run method for directness.
|
356 |
|
357 |
+
def forward(self, image_url: str) -> str:
|
358 |
"""
|
359 |
Executes the image analysis by sending the image URL to the Hugging Face API.
|
360 |
"""
|