maduvantha commited on
Commit
73c739d
·
1 Parent(s): 98b2f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import matplotlib.pyplot as plt
8
  import matplotlib.animation as animation
9
  from skimage.transform import resize
10
  import warnings
 
11
 
12
  warnings.filterwarnings("ignore")
13
  source_image = imageio.imread('harold.jpg')
@@ -44,4 +45,6 @@ st.write("Hello, World!")
44
  st.write(display(source_image, driving_video).to_html5_video(), unsafe_allow_html=True)
45
 
46
  # display Markdown
47
- st.write("# Hello, World!")
 
 
 
8
  import matplotlib.animation as animation
9
  from skimage.transform import resize
10
  import warnings
11
+ from demo import load_checkpoints
12
 
13
  warnings.filterwarnings("ignore")
14
  source_image = imageio.imread('harold.jpg')
 
45
  st.write(display(source_image, driving_video).to_html5_video(), unsafe_allow_html=True)
46
 
47
  # display Markdown
48
+ st.write("# Hello, World!")
49
+
50
+ generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',checkpoint_path='vox-cpk.pth.tar')