Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 "
|
| 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("@
|
| 534 |
-
prompt = text[len("@
|
| 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",
|