Fabrice-TIERCELIN commited on
Commit
30b573b
·
verified ·
1 Parent(s): 8ed1327

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -541,7 +541,7 @@ def process(input_image, prompt,
541
 
542
  if torch.cuda.device_count() == 0:
543
  gr.Warning('Set this space to GPU config to make it work.')
544
- yield None, None, None, None, None, None
545
  return
546
 
547
  if input_image_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
@@ -861,7 +861,7 @@ def process_video(input_video, prompt, n_prompt, randomize_seed, seed, batch, re
861
 
862
  if torch.cuda.device_count() == 0:
863
  gr.Warning('Set this space to GPU config to make it work.')
864
- yield None, None, None, None, None, None
865
  return
866
 
867
  if input_video_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
@@ -1024,7 +1024,7 @@ with block:
1024
  832,
1025
  864,
1026
  960
1027
- ], value=672, label="Resolution (max width or height)")
1028
 
1029
  # 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
1030
  cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time. Should not change.')
 
541
 
542
  if torch.cuda.device_count() == 0:
543
  gr.Warning('Set this space to GPU config to make it work.')
544
+ yield gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update()
545
  return
546
 
547
  if input_image_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
 
861
 
862
  if torch.cuda.device_count() == 0:
863
  gr.Warning('Set this space to GPU config to make it work.')
864
+ yield gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update()
865
  return
866
 
867
  if input_video_debug_value is not None or prompt_debug_value is not None or total_second_length_debug_value is not None:
 
1024
  832,
1025
  864,
1026
  960
1027
+ ], value=640, label="Resolution (max width or height)")
1028
 
1029
  # 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
1030
  cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time. Should not change.')