Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def image_understanding(image: Image.Image, prompt: str, show_thinking=False,
|
|
218 |
|
219 |
|
220 |
# Image Editing function with thinking option and hyperparameters
|
221 |
-
@spaces.GPU(duration=
|
222 |
def edit_image(image: Image.Image, prompt: str, show_thinking=False, cfg_text_scale=4.0,
|
223 |
cfg_img_scale=2.0, cfg_interval=0.0,
|
224 |
timestep_shift=3.0, num_timesteps=50, cfg_renorm_min=1.0,
|
@@ -464,45 +464,4 @@ with gr.Blocks() as demo:
|
|
464 |
outputs=txt_output
|
465 |
)
|
466 |
|
467 |
-
gr.Markdown("""
|
468 |
-
<div style="display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px;">
|
469 |
-
<a href="https://bagel-ai.org/">
|
470 |
-
<img
|
471 |
-
src="https://img.shields.io/badge/BAGEL-Website-0A66C2?logo=safari&logoColor=white"
|
472 |
-
alt="BAGEL Website"
|
473 |
-
/>
|
474 |
-
</a>
|
475 |
-
<a href="https://arxiv.org/abs/2505.14683">
|
476 |
-
<img
|
477 |
-
src="https://img.shields.io/badge/BAGEL-Paper-red?logo=arxiv&logoColor=red"
|
478 |
-
alt="BAGEL Paper on arXiv"
|
479 |
-
/>
|
480 |
-
</a>
|
481 |
-
<a href="https://huggingface.co/ByteDance-Seed/BAGEL-7B-MoT">
|
482 |
-
<img
|
483 |
-
src="https://img.shields.io/badge/BAGEL-Hugging%20Face-orange?logo=huggingface&logoColor=yellow"
|
484 |
-
alt="BAGEL on Hugging Face"
|
485 |
-
/>
|
486 |
-
</a>
|
487 |
-
<a href="https://demo.bagel-ai.org/">
|
488 |
-
<img
|
489 |
-
src="https://img.shields.io/badge/BAGEL-Demo-blue?logo=googleplay&logoColor=blue"
|
490 |
-
alt="BAGEL Demo"
|
491 |
-
/>
|
492 |
-
</a>
|
493 |
-
<a href="https://discord.gg/Z836xxzy">
|
494 |
-
<img
|
495 |
-
src="https://img.shields.io/badge/BAGEL-Discord-5865F2?logo=discord&logoColor=purple"
|
496 |
-
alt="BAGEL Discord"
|
497 |
-
/>
|
498 |
-
</a>
|
499 |
-
<a href="mailto:bagel@bytedance.com">
|
500 |
-
<img
|
501 |
-
src="https://img.shields.io/badge/BAGEL-Email-D14836?logo=gmail&logoColor=red"
|
502 |
-
alt="BAGEL Email"
|
503 |
-
/>
|
504 |
-
</a>
|
505 |
-
</div>
|
506 |
-
""")
|
507 |
-
|
508 |
demo.launch()
|
|
|
218 |
|
219 |
|
220 |
# Image Editing function with thinking option and hyperparameters
|
221 |
+
@spaces.GPU(duration=120)
|
222 |
def edit_image(image: Image.Image, prompt: str, show_thinking=False, cfg_text_scale=4.0,
|
223 |
cfg_img_scale=2.0, cfg_interval=0.0,
|
224 |
timestep_shift=3.0, num_timesteps=50, cfg_renorm_min=1.0,
|
|
|
464 |
outputs=txt_output
|
465 |
)
|
466 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
demo.launch()
|