fffiloni commited on
Commit
a22f56a
1 Parent(s): 075752f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -57,9 +57,6 @@ def extract_frames_with_labels(video_path, base_output_dir="frames"):
57
 
58
  # Define a function to run your script with selected inputs
59
  def run_xportrait(source_image, driving_video, seed, uc_scale, best_frame, out_frames, num_mix, ddim_steps):
60
- # Check if the model weights are in place
61
- if not os.path.exists(resume_dir):
62
- return "Model weights not found in checkpoint directory. Please download them first."
63
 
64
  # Create a unique output directory name based on current date and time
65
  output_dir_base = "outputs"
@@ -115,7 +112,7 @@ with gr.Blocks() as demo:
115
  best_frame = gr.Number(value=36, label="Best Frame")
116
  out_frames = gr.Number(value=-1, label="Out Frames")
117
  with gr.Accordion("Driving video Frames"):
118
- driving_frames = gr.Gallery(show_label=True)
119
  with gr.Row():
120
  num_mix = gr.Number(value=4, label="Number of Mix")
121
  ddim_steps = gr.Number(value=30, label="DDIM Steps")
 
57
 
58
  # Define a function to run your script with selected inputs
59
  def run_xportrait(source_image, driving_video, seed, uc_scale, best_frame, out_frames, num_mix, ddim_steps):
 
 
 
60
 
61
  # Create a unique output directory name based on current date and time
62
  output_dir_base = "outputs"
 
112
  best_frame = gr.Number(value=36, label="Best Frame")
113
  out_frames = gr.Number(value=-1, label="Out Frames")
114
  with gr.Accordion("Driving video Frames"):
115
+ driving_frames = gr.Gallery(show_label=True, columns=6, height=512)
116
  with gr.Row():
117
  num_mix = gr.Number(value=4, label="Number of Mix")
118
  ddim_steps = gr.Number(value=30, label="DDIM Steps")