imseldrith commited on
Commit
4e97e44
·
1 Parent(s): bf96aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -34,7 +34,10 @@ def dub():
34
 
35
  # Get audio
36
  audio = clip.audio
37
- n = len(audio.fps)
 
 
 
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 = ""