daddyjin commited on
Commit
c16827d
1 Parent(s): 5db452a

edit app.py and change default example images

Browse files
FONT/gradio_demo.py CHANGED
@@ -494,7 +494,6 @@ class FONT():
494
 
495
 
496
  pose_dim = np.load(pose_file).shape[-1]
497
- all_pose = np.load(pose_file).reshape(-1, pose_dim)
498
  all_pose = self.smooth_pose(pose_file, pose_given)
499
 
500
  source_image = img_as_float32(io.imread(source_image_path))
 
494
 
495
 
496
  pose_dim = np.load(pose_file).shape[-1]
 
497
  all_pose = self.smooth_pose(pose_file, pose_given)
498
 
499
  source_image = img_as_float32(io.imread(source_image_path))
app.py CHANGED
@@ -11,8 +11,8 @@ def tfr(source_img, driving_audio):
11
 
12
  tfr_demo = gr.Interface(fn=tfr, inputs=[gr.Image(type="filepath"), gr.Audio(type="filepath")],
13
  outputs=gr.Video(include_audio=True, height=256, width=256),
14
- examples=[["./example/images/ABOUT_00514.jpg", "./example/audios/6343252661930009508_00092.wav"],
15
- ["./example/images/ABOUT_00994.jpg", "./example/audios/6350921755403330389_00056.wav"]])
16
 
17
  def greet(name):
18
  return "Hello, " + name + "!"
 
11
 
12
  tfr_demo = gr.Interface(fn=tfr, inputs=[gr.Image(type="filepath"), gr.Audio(type="filepath")],
13
  outputs=gr.Video(include_audio=True, height=256, width=256),
14
+ examples=[["./example/images/60.png", "./example/audios/6343252661930009508_00092.wav"],
15
+ ["./example/images/7.png", "./example/audios/6350921755403330389_00056.wav"]])
16
 
17
  def greet(name):
18
  return "Hello, " + name + "!"
example/images/60.png ADDED

Git LFS Details

  • SHA256: 27984ac02c6262045b523647b888b1af1a06f01ebb3dbb6a45338ddeacf61935
  • Pointer size: 130 Bytes
  • Size of remote file: 87 kB
example/images/7.png ADDED

Git LFS Details

  • SHA256: f0a6f9b62123bfaef074958fa82af94e57ca7087b722547b8672d17a73910234
  • Pointer size: 130 Bytes
  • Size of remote file: 81.5 kB