Spaces:
Runtime error
Runtime error
AdityA36912355
commited on
Commit
•
461df35
1
Parent(s):
bb766be
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def swap_faces(source_image_path, target_image_path, enhance_face=True, enhance_
|
|
27 |
target_ext = target_image_path.split('.')[-1]
|
28 |
output_image_file = tempfile.NamedTemporaryFile(suffix=f'.{target_ext}')
|
29 |
output_image_path = output_image_file.name
|
30 |
-
duration = get_video_duration(target_image_path)
|
31 |
print(source_image_path)
|
32 |
print(target_image_path)
|
33 |
print(output_image_path)
|
|
|
27 |
target_ext = target_image_path.split('.')[-1]
|
28 |
output_image_file = tempfile.NamedTemporaryFile(suffix=f'.{target_ext}')
|
29 |
output_image_path = output_image_file.name
|
30 |
+
duration = int(get_video_duration(target_image_path))
|
31 |
print(source_image_path)
|
32 |
print(target_image_path)
|
33 |
print(output_image_path)
|