Spaces:
Sleeping
Sleeping
Update tools.py
Browse files21 unmodified lines222324252526272825 unmodified lines545556575758596021 unmodified lines self.api_url = api_url print("FileReaderTool initialized.")
def __call__(self, task_id: str) -> str: def forward(self, task_id: str) -> str: file_url = f"{self.api_url}/files/{task_id}" print(f"FileReaderTool downloading from: {file_url}") try:25 unmodified lines self.api_url = api_url print("ImageReaderTool initialized.")
def __call__(self, task_id: str) -> str: def forward(self, task_id: str) -> str: file_url = f"{self.api_url}/files/{task_id}" print(f"ImageReaderTool downloading from: {file_url}") try:tools.py+2-2