Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def does_file_exist(file_name: str) -> bool:
|
|
| 48 |
file_path: Path = Path(f"./{file_name}")
|
| 49 |
return file_path.exists()
|
| 50 |
except Exception as e:
|
| 51 |
-
|
| 52 |
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|
|
|
|
| 48 |
file_path: Path = Path(f"./{file_name}")
|
| 49 |
return file_path.exists()
|
| 50 |
except Exception as e:
|
| 51 |
+
return f"Error finding the file {file_name}: {str(e)}"
|
| 52 |
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|