Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,7 @@ def generate_image_with_prompt(prompt: str) -> str:
|
|
| 32 |
@tool
|
| 33 |
def random_fact() -> str:
|
| 34 |
"""Fetches a random fun fact."""
|
|
|
|
| 35 |
facts = [
|
| 36 |
"Honey never spoils.",
|
| 37 |
"Octopuses have three hearts.",
|
|
@@ -43,6 +44,7 @@ def random_fact() -> str:
|
|
| 43 |
@tool
|
| 44 |
def tell_joke()-> str:
|
| 45 |
"""Returns a random joke."""
|
|
|
|
| 46 |
jokes = [
|
| 47 |
"Why don't skeletons fight each other? They don't have the guts.",
|
| 48 |
"I told my wife she was drawing her eyebrows too high. She looked surprised.",
|
|
|
|
| 32 |
@tool
|
| 33 |
def random_fact() -> str:
|
| 34 |
"""Fetches a random fun fact."""
|
| 35 |
+
import random
|
| 36 |
facts = [
|
| 37 |
"Honey never spoils.",
|
| 38 |
"Octopuses have three hearts.",
|
|
|
|
| 44 |
@tool
|
| 45 |
def tell_joke()-> str:
|
| 46 |
"""Returns a random joke."""
|
| 47 |
+
import random
|
| 48 |
jokes = [
|
| 49 |
"Why don't skeletons fight each other? They don't have the guts.",
|
| 50 |
"I told my wife she was drawing her eyebrows too high. She looked surprised.",
|