Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,20 @@ def ai_fortune_teller(category: str) -> str:
|
|
60 |
return "Oh, you want a special prediction? Sure. I predict you’ll ignore this advice and continue making questionable life choices. 😂"
|
61 |
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
|
|
64 |
|
65 |
|
66 |
|
@@ -104,7 +117,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
104 |
|
105 |
agent = CodeAgent(
|
106 |
model=model,
|
107 |
-
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, duckduckgosearch_tool, ai_fortune_teller], ## add your tools here (don't remove final answer)
|
108 |
max_steps=6,
|
109 |
verbosity_level=1,
|
110 |
grammar=None,
|
|
|
60 |
return "Oh, you want a special prediction? Sure. I predict you’ll ignore this advice and continue making questionable life choices. 😂"
|
61 |
|
62 |
|
63 |
+
@tool
|
64 |
+
def conspiracy_theory_generator() -> str:
|
65 |
+
"""Generates a random, ridiculous conspiracy theory.
|
66 |
+
|
67 |
+
Returns:
|
68 |
+
str: A completely fake but hilarious conspiracy theory.
|
69 |
+
"""
|
70 |
+
subjects = ["AI", "Elon Musk", "NASA", "The Moon", "Time Travelers", "Ancient Egyptians", "Pigeons", "The Illuminati"]
|
71 |
+
events = ["never actually happened", "was staged to hide something bigger", "is secretly controlled by lizard people",
|
72 |
+
"is part of a government experiment", "is an AI simulation that we’re all trapped in"]
|
73 |
+
twists = ["and the government knows about it", "but it's being covered up", "and it’s all connected to the Bermuda Triangle",
|
74 |
+
"but nobody is ready for the truth yet", "and it will all be revealed in 2030"]
|
75 |
|
76 |
+
return f"{random.choice(subjects)} {random.choice(events)} {random.choice(twists)}."
|
77 |
|
78 |
|
79 |
|
|
|
117 |
|
118 |
agent = CodeAgent(
|
119 |
model=model,
|
120 |
+
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, duckduckgosearch_tool, ai_fortune_teller, conspiracy_theory_generator], ## add your tools here (don't remove final answer)
|
121 |
max_steps=6,
|
122 |
verbosity_level=1,
|
123 |
grammar=None,
|