Fabrice-TIERCELIN commited on
Commit
65d64e5
·
verified ·
1 Parent(s): f3885bd
Files changed (1) hide show
  1. app_v2v.py +8 -0
app_v2v.py CHANGED
@@ -636,6 +636,14 @@ quick_prompts = [[x] for x in quick_prompts]
636
  css = make_progress_bar_css()
637
  block = gr.Blocks(css=css).queue()
638
  with block:
 
 
 
 
 
 
 
 
639
  # 20250506 pftq: Updated title to reflect video input functionality
640
  gr.Markdown('# Framepack F1 with Image Input or with Video Input (Video Extension)')
641
  with gr.Row():
 
636
  css = make_progress_bar_css()
637
  block = gr.Blocks(css=css).queue()
638
  with block:
639
+ if torch.cuda.device_count() == 0:
640
+ with gr.Row():
641
+ gr.HTML("""
642
+ <p style="background-color: red;"><big><big><big><b>⚠️To use FramePack, <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/SUPIR?duplicate=true">duplicate this space</a> and set a GPU with 30 GB VRAM.</b>
643
+
644
+ You can't use FramePack directly here because this space runs on a CPU, which is not enough for FramePack. Please provide <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/SUPIR/discussions/new">feedback</a> if you have issues.
645
+ </big></big></big></p>
646
+ """)
647
  # 20250506 pftq: Updated title to reflect video input functionality
648
  gr.Markdown('# Framepack F1 with Image Input or with Video Input (Video Extension)')
649
  with gr.Row():