Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
|
@@ -54,7 +55,6 @@ def generate_meme_text(topic: str, tone: str) -> str:
|
|
| 54 |
# Choose from tone, fallback to "random"
|
| 55 |
selected = templates.get(tone, templates["random"])
|
| 56 |
|
| 57 |
-
import random
|
| 58 |
return random.choice(selected)
|
| 59 |
|
| 60 |
|
|
|
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
+
import random
|
| 6 |
import yaml
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
|
|
|
|
| 55 |
# Choose from tone, fallback to "random"
|
| 56 |
selected = templates.get(tone, templates["random"])
|
| 57 |
|
|
|
|
| 58 |
return random.choice(selected)
|
| 59 |
|
| 60 |
|