Spaces:
Sleeping
Sleeping
Update tools/ReadImageTool.py
Browse files- tools/ReadImageTool.py +6 -1
tools/ReadImageTool.py
CHANGED
|
@@ -3,7 +3,12 @@ from smolagents.tools import Tool
|
|
| 3 |
class ReadImageTool(Tool):
|
| 4 |
name = "read_image"
|
| 5 |
description = "Reads an image file and returns its base64 string for Gemini."
|
| 6 |
-
inputs = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
output_type = "string"
|
| 8 |
|
| 9 |
def forward(self, file_path: str) -> str:
|
|
|
|
| 3 |
class ReadImageTool(Tool):
|
| 4 |
name = "read_image"
|
| 5 |
description = "Reads an image file and returns its base64 string for Gemini."
|
| 6 |
+
inputs = {
|
| 7 |
+
"file_path": {
|
| 8 |
+
"type": "string",
|
| 9 |
+
"description": "The full path of the text file to read"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
output_type = "string"
|
| 13 |
|
| 14 |
def forward(self, file_path: str) -> str:
|