STARX33 commited on
Commit
8c8ee23
·
verified ·
1 Parent(s): d5a06fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- expect 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 !
 
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 !