Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ from PIL import Image
|
|
25 |
import moviepy.editor as mp
|
26 |
from videoretalking import inference_function
|
27 |
import base64
|
|
|
28 |
|
29 |
start_time = time.time()
|
30 |
|
@@ -216,7 +217,7 @@ def main(args):
|
|
216 |
print('The video with lip sync is generated')
|
217 |
print("GFPGAN Activated")
|
218 |
|
219 |
-
process_video_with_gfpgan(output_path, output_path)
|
220 |
audio_clip = AudioFileClip(new_audio_path)
|
221 |
video_clip = VideoFileClip(output_path)
|
222 |
# Combine audio and video
|
|
|
25 |
import moviepy.editor as mp
|
26 |
from videoretalking import inference_function
|
27 |
import base64
|
28 |
+
import gfpgan_enhancer
|
29 |
|
30 |
start_time = time.time()
|
31 |
|
|
|
217 |
print('The video with lip sync is generated')
|
218 |
print("GFPGAN Activated")
|
219 |
|
220 |
+
gfpgan_enhancer.process_video_with_gfpgan(output_path, output_path)
|
221 |
audio_clip = AudioFileClip(new_audio_path)
|
222 |
video_clip = VideoFileClip(output_path)
|
223 |
# Combine audio and video
|