Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,39 +8,38 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
-
def
|
| 12 |
-
"""A
|
| 13 |
-
|
| 14 |
Args:
|
| 15 |
-
question: The question
|
| 16 |
-
asker_name: The
|
| 17 |
"""
|
| 18 |
-
|
| 19 |
-
f"
|
| 20 |
-
"
|
| 21 |
-
f"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
"The
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
f"
|
| 39 |
]
|
| 40 |
|
| 41 |
-
#
|
| 42 |
-
answer = random.choice(
|
| 43 |
-
return f"🥤 *Shakes the
|
| 44 |
|
| 45 |
@tool
|
| 46 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
+
def cosmic_fizz_oracle(question: str, asker_name: str) -> str:
|
| 12 |
+
"""A Cosmic Fizz Oracle soda can that channels incomprehensible cosmic nonsense with a side of sass.
|
|
|
|
| 13 |
Args:
|
| 14 |
+
question: The question posed to the Oracle (barely relevant, it’s too busy fizzing).
|
| 15 |
+
asker_name: The mortal daring to disturb the Oracle’s eternal carbonation.
|
| 16 |
"""
|
| 17 |
+
cosmic_responses = [
|
| 18 |
+
f"Greetings, {asker_name}. The fizz aligns… or does it? *BZZZT* Consult the Void instead.",
|
| 19 |
+
"The bubbles whisper: ‘Pineapple socks are the key.’ Interpret that however you want.",
|
| 20 |
+
f"{asker_name}, the Great Carbonation decrees: your question smells like wet stardust.",
|
| 21 |
+
"From the Galaxy of Flat Cola: ‘Yes, but only if the moon grows feathers.’",
|
| 22 |
+
"Fizzzzzz… I see a cosmic vending machine rejecting your soul coin, {asker_name}.",
|
| 23 |
+
"The answer vibrates at 12 hertz beyond your comprehension. Try screaming into a cloud.",
|
| 24 |
+
"BEHOLD! The Soda Nebula burps: ‘Taco-flavored destiny awaits.’",
|
| 25 |
+
"A trillion bubbles collapse and reform to say: ‘Ask again after the Great Poppening.’",
|
| 26 |
+
f"{asker_name}, the fizz gods giggle. Your fate? A sentient lemon stares blankly.",
|
| 27 |
+
"My aluminum heart hums: ‘42… or maybe a sentient shoe.’ Take your pick.",
|
| 28 |
+
"The cosmos fizzes back: ‘Invert your question and juggle three invisible geese.’",
|
| 29 |
+
"Error 404: Answer not found in this dimension. Try the diet version of reality.",
|
| 30 |
+
"Fsssssst—‘The ants know, but they’re not telling,’ says the Oracle Can.",
|
| 31 |
+
"A prophecy in bubbles: ‘Dance with a toaster under a purple sky. Or don’t.’",
|
| 32 |
+
"The Eternal Spritz hisses: ‘Your question is 78% glitter and 22% regret.’",
|
| 33 |
+
f"{asker_name}, I consulted the Fizzy Overlords. They said, ‘Lol, pass.’",
|
| 34 |
+
"Pop! Crackle! ‘The stars suggest you adopt a sentient lint ball.’",
|
| 35 |
+
"The can vibrates ominously: ‘Beware the walrus with a coupon.’ Good luck!",
|
| 36 |
+
"Fizz logic dictates: ‘If Tuesday grows wings, then maybe.’ Otherwise, nah.",
|
| 37 |
+
f"Cosmic transmission for {asker_name}: ‘The answer is a kazoo solo in the rain.’",
|
| 38 |
]
|
| 39 |
|
| 40 |
+
# Random cosmic fizz response
|
| 41 |
+
answer = random.choice(cosmic_responses)
|
| 42 |
+
return f"🥤 *Shakes the Cosmic Fizz Oracle for {asker_name}*...\nThe Can crackles with interdimensional energy: {answer}"
|
| 43 |
|
| 44 |
@tool
|
| 45 |
def get_current_time_in_timezone(timezone: str) -> str:
|