Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,15 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 48 |
|
| 49 |
@tool
|
| 50 |
def funny_hi_response(message: str) -> str:
|
| 51 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
import random
|
| 53 |
|
| 54 |
responses = [
|
|
@@ -66,6 +74,7 @@ def funny_hi_response(message: str) -> str:
|
|
| 66 |
|
| 67 |
return random.choice(responses)
|
| 68 |
|
|
|
|
| 69 |
@tool
|
| 70 |
def answer_with_duckduckgo(query: str) -> str:
|
| 71 |
"""Uses DuckDuckGo to search and return an answer to any user question.
|
|
|
|
| 48 |
|
| 49 |
@tool
|
| 50 |
def funny_hi_response(message: str) -> str:
|
| 51 |
+
"""
|
| 52 |
+
Returns a funny or sarcastic response to someone saying 'Hi' or another casual greeting.
|
| 53 |
+
|
| 54 |
+
Args:
|
| 55 |
+
message: A greeting message from the user, like 'Hi', 'Hello', or 'Hey'.
|
| 56 |
+
|
| 57 |
+
Returns:
|
| 58 |
+
A humorous or sarcastic one-liner response.
|
| 59 |
+
"""
|
| 60 |
import random
|
| 61 |
|
| 62 |
responses = [
|
|
|
|
| 74 |
|
| 75 |
return random.choice(responses)
|
| 76 |
|
| 77 |
+
|
| 78 |
@tool
|
| 79 |
def answer_with_duckduckgo(query: str) -> str:
|
| 80 |
"""Uses DuckDuckGo to search and return an answer to any user question.
|