Epoching commited on
Commit
f09d054
1 Parent(s): 394122d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -187,12 +187,13 @@ def resizer(input_img, max_img_size=512):
187
 
188
  def main_app(input_img, num_frames, fps):
189
 
 
 
 
190
  # Save image in necessary folder for inpainting
191
  #img_name = Path(str(uuid.uuid4()) + '.jpg')
192
  img_name = Path('sample.jpg')
193
  save_folder = Path('image')
194
-
195
- input_img = resizer(input_img)
196
  input_img.save(save_folder/img_name)
197
 
198
  inpaint(img_name, num_frames, fps)
 
187
 
188
  def main_app(input_img, num_frames, fps):
189
 
190
+ # resize down
191
+ input_img = resizer(input_img)
192
+
193
  # Save image in necessary folder for inpainting
194
  #img_name = Path(str(uuid.uuid4()) + '.jpg')
195
  img_name = Path('sample.jpg')
196
  save_folder = Path('image')
 
 
197
  input_img.save(save_folder/img_name)
198
 
199
  inpaint(img_name, num_frames, fps)