EthanBlake commited on
Commit
a286c55
·
1 Parent(s): 3be20e9

Add image editor upsell banner below status

Browse files
Files changed (1) hide show
  1. src/app_lib.py +13 -0
src/app_lib.py CHANGED
@@ -2474,6 +2474,16 @@ def run_generation_real(
2474
  def build_demo() -> gr.Blocks:
2475
  banner_subtitle = "Please give us a ❤️ if you find it helpful. No usage limits beyond your ZeroGPU daily quota."
2476
  manual_prompt_min_chars = 10
 
 
 
 
 
 
 
 
 
 
2477
  with gr.Blocks(title="Omni Video Factory") as demo:
2478
  gr.HTML(
2479
  f"""
@@ -2775,6 +2785,7 @@ def build_demo() -> gr.Blocks:
2775
  download_card_i2v = gr.HTML(value="", visible=False)
2776
  nsfw_preview_i2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2777
  status_i2v = gr.Textbox(label="Generation status", lines=8)
 
2778
 
2779
  resolution_i2v.change(
2780
  _on_resolution_change_with_scene_boxes,
@@ -2845,6 +2856,7 @@ def build_demo() -> gr.Blocks:
2845
  download_card_t2v = gr.HTML(value="", visible=False)
2846
  nsfw_preview_t2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2847
  status_t2v = gr.Textbox(label="Generation status", lines=8)
 
2848
 
2849
  resolution_t2v.change(
2850
  _on_resolution_change_with_scene_boxes,
@@ -2900,6 +2912,7 @@ def build_demo() -> gr.Blocks:
2900
  download_card_v2v = gr.HTML(value="", visible=False)
2901
  nsfw_preview_v2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2902
  status_v2v = gr.Textbox(label="Generation status", lines=8)
 
2903
 
2904
  run_btn_v2v.click(
2905
  _submit_v2v,
 
2474
  def build_demo() -> gr.Blocks:
2475
  banner_subtitle = "Please give us a ❤️ if you find it helpful. No usage limits beyond your ZeroGPU daily quota."
2476
  manual_prompt_min_chars = 10
2477
+ image_editor_upsell_html = """
2478
+ <div style="margin-top:14px;">
2479
+ <a href="https://huggingface.co/spaces/selfit-camera/Omni-Image-Editor" target="_blank" style="display:block; text-decoration:none;">
2480
+ <div style="display:flex; align-items:center; justify-content:center; gap:18px; padding:16px 20px; border-radius:22px; background:linear-gradient(90deg,#e38cf4 0%,#f55978 100%); box-shadow:0 10px 24px rgba(245,89,120,0.18);">
2481
+ <div style="color:#fff; font-size:1.3em; font-weight:800; line-height:1.2; text-align:center;">Try our multi-feature image editing demo here</div>
2482
+ <div style="flex:0 0 auto; background:#fff; color:#f25575; border-radius:18px; padding:10px 24px; font-size:1.25em; font-weight:800; line-height:1;">Try it now</div>
2483
+ </div>
2484
+ </a>
2485
+ </div>
2486
+ """
2487
  with gr.Blocks(title="Omni Video Factory") as demo:
2488
  gr.HTML(
2489
  f"""
 
2785
  download_card_i2v = gr.HTML(value="", visible=False)
2786
  nsfw_preview_i2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2787
  status_i2v = gr.Textbox(label="Generation status", lines=8)
2788
+ gr.HTML(image_editor_upsell_html)
2789
 
2790
  resolution_i2v.change(
2791
  _on_resolution_change_with_scene_boxes,
 
2856
  download_card_t2v = gr.HTML(value="", visible=False)
2857
  nsfw_preview_t2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2858
  status_t2v = gr.Textbox(label="Generation status", lines=8)
2859
+ gr.HTML(image_editor_upsell_html)
2860
 
2861
  resolution_t2v.change(
2862
  _on_resolution_change_with_scene_boxes,
 
2912
  download_card_v2v = gr.HTML(value="", visible=False)
2913
  nsfw_preview_v2v = gr.Image(label="NSFW Preview (Blurred 80% Frame)", type="filepath", visible=False)
2914
  status_v2v = gr.Textbox(label="Generation status", lines=8)
2915
+ gr.HTML(image_editor_upsell_html)
2916
 
2917
  run_btn_v2v.click(
2918
  _submit_v2v,