ldkong commited on
Commit
94b65fc
·
1 Parent(s): af62f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -49,11 +49,10 @@ def display_gif_pad(file_name, save_name):
49
  image_filename = file_name + frame_name + '.png'
50
  image = imageio.imread(image_filename)
51
  image = image[:, :, :3]
52
- image_pad = cv2.copyMakeBorder(image, 0, 0, 100, 100, cv2.BORDER_CONSTANT, value=0)
53
  images.append(image_pad)
54
 
55
- gif_filename = 'avatar_source.gif'
56
- return imageio.mimsave(gif_filename, images)
57
 
58
 
59
  def display_image(file_name):
 
49
  image_filename = file_name + frame_name + '.png'
50
  image = imageio.imread(image_filename)
51
  image = image[:, :, :3]
52
+ image_pad = cv2.copyMakeBorder(image, 0, 0, 125, 125, cv2.BORDER_CONSTANT, value=0)
53
  images.append(image_pad)
54
 
55
+ return imageio.mimsave(save_name, images)
 
56
 
57
 
58
  def display_image(file_name):