Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def generate_pun(topic: str) -> str:
|
|
| 38 |
"weather": "I tried to catch some fog... but I mist.",
|
| 39 |
}
|
| 40 |
return puns.get(topic.lower(), f"I don't have a pun for '{topic}' yet, but I’ll *try* not to make a joke of it!")
|
| 41 |
-
|
| 42 |
return f"OOps, couldn't generate a pun: {str(e)}"
|
| 43 |
|
| 44 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 38 |
"weather": "I tried to catch some fog... but I mist.",
|
| 39 |
}
|
| 40 |
return puns.get(topic.lower(), f"I don't have a pun for '{topic}' yet, but I’ll *try* not to make a joke of it!")
|
| 41 |
+
except Exception as e:
|
| 42 |
return f"OOps, couldn't generate a pun: {str(e)}"
|
| 43 |
|
| 44 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|