prithivMLmods commited on
Commit
ebdcf60
Β·
verified Β·
1 Parent(s): 93507ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -493,7 +493,7 @@ def generate(
493
  # --- Image Generation branch ---
494
  if text.strip().lower().startswith("@image"):
495
  prompt = text[len("@image"):].strip()
496
- yield "πŸͺ§ Generating image..."
497
  image_paths, used_seed = generate_image_fn(
498
  prompt=prompt,
499
  negative_prompt="",
@@ -530,8 +530,8 @@ def generate(
530
  return
531
 
532
  # --- rAgent Reasoning branch ---
533
- if text.strip().lower().startswith("@rAgent"):
534
- prompt = text[len("@rAgent"):].strip()
535
  yield "πŸ“ Initiating reasoning chain using Llama mode..."
536
  # Pass the current chat history (cleaned) to help inform the chain.
537
  for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
@@ -720,6 +720,7 @@ demo = gr.ChatInterface(
720
  ["@rAgent Explain how a binary search algorithm works."],
721
  ["@web Is Grok-3 Beats DeepSeek-R1 at Reasoning ?"],
722
  ["@tts1 Explain Tower of Hanoi"],
 
723
  ],
724
  cache_examples=False,
725
  type="messages",
 
493
  # --- Image Generation branch ---
494
  if text.strip().lower().startswith("@image"):
495
  prompt = text[len("@image"):].strip()
496
+ yield "⚑ Generating image β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’ 69%"
497
  image_paths, used_seed = generate_image_fn(
498
  prompt=prompt,
499
  negative_prompt="",
 
530
  return
531
 
532
  # --- rAgent Reasoning branch ---
533
+ if text.strip().lower().startswith("@ragent"):
534
+ prompt = text[len("@ragent"):].strip()
535
  yield "πŸ“ Initiating reasoning chain using Llama mode..."
536
  # Pass the current chat history (cleaned) to help inform the chain.
537
  for partial in ragent_reasoning(prompt, clean_chat_history(chat_history)):
 
720
  ["@rAgent Explain how a binary search algorithm works."],
721
  ["@web Is Grok-3 Beats DeepSeek-R1 at Reasoning ?"],
722
  ["@tts1 Explain Tower of Hanoi"],
723
+ ["@image A drawing of an man made out of Hamburger, with a blue sky background, in the style of Stylized llustration, with soft pastel colors, pop art "],
724
  ],
725
  cache_examples=False,
726
  type="messages",