Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def my_custom_tool()-> str: #it's import to specify the return type
|
|
| 18 |
|
| 19 |
"""
|
| 20 |
path = Path("dad_jokes.txt")
|
| 21 |
-
|
| 22 |
raise FileNotFoundError(f"{path} not found")
|
| 23 |
|
| 24 |
jokes = []
|
|
|
|
| 18 |
|
| 19 |
"""
|
| 20 |
path = Path("dad_jokes.txt")
|
| 21 |
+
if not path.exists():
|
| 22 |
raise FileNotFoundError(f"{path} not found")
|
| 23 |
|
| 24 |
jokes = []
|