Spaces:
Paused
Paused
Commit
·
4e97e44
1
Parent(s):
bf96aec
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,10 @@ def dub():
|
|
| 34 |
|
| 35 |
# Get audio
|
| 36 |
audio = clip.audio
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
bar = Bar("Dubbing", max=n)
|
| 40 |
text = ""
|
|
|
|
| 34 |
|
| 35 |
# Get audio
|
| 36 |
audio = clip.audio
|
| 37 |
+
if isinstance(audio.fps, int):
|
| 38 |
+
n = audio.fps
|
| 39 |
+
else:
|
| 40 |
+
n = len(audio.fps)
|
| 41 |
|
| 42 |
bar = Bar("Dubbing", max=n)
|
| 43 |
text = ""
|