sascow commited on
Commit
9a4f70b
·
verified ·
1 Parent(s): 395d689

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -29
app.py CHANGED
@@ -8,39 +8,38 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
- def sarcastic_soda_can(question: str, asker_name: str) -> str:
12
- """A Sarcastic Soda Can tool that provides snarky and unhelpful responses when 'shaken' (queried).
13
-
14
  Args:
15
- question: The question being asked to the Sarcastic Soda Can (ignored, mostly).
16
- asker_name: The name of the person foolish enough to ask the can (for extra sarcasm).
17
  """
18
- sarcastic_responses = [
19
- f"Oh, *that's* a good question, {asker_name}. Really?",
20
- "Hmm, let me think... Nope, still don't care.",
21
- f"As if *I* would know, {asker_name}.",
22
- "Outlook not so good... for your intelligence if you're asking *me*.",
23
- "Seriously? You needed *me* for *this*, {asker_name}?",
24
- "Yeah, yeah, everyone's got questions.",
25
- "Are you sure you've thought this through? Probably not.",
26
- "Don't get your hopes up.",
27
- "Maybe try asking someone who actually gets paid to answer questions.",
28
- f"In my professional soda can opinion, {asker_name}, you're on your own.",
29
- "The answer is... try again later when I'm less bored.",
30
- "My sources say... you should probably just Google it.",
31
- "Concentrate harder and maybe the answer will magically appear... spoiler: it won't.",
32
- "Better not tell you now, it's funnier this way.",
33
- "Reply hazy, mostly because I'm a soda can.",
34
- "Don't count on me. Or anything, really.",
35
- "My reply is a resounding... *shrug*.",
36
- "Outlook? Let's just say 'cloudy with a chance of disappointment'.",
37
- "Very doubtful... that you'll get a useful answer from *me*.",
38
- f"It is certain... that you're talking to a soda can, {asker_name}." # Just a *touch* of irony
39
  ]
40
 
41
- # Get random sarcastic response
42
- answer = random.choice(sarcastic_responses)
43
- return f"🥤 *Shakes the Sarcastic Soda Can for {asker_name}*...\nThe Soda Can grumbles: {answer}"
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: