Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,11 +54,13 @@ def video_inputs(video, TR_LANGUAGE, LANGUAGE, SPEAKER):
|
|
54 |
elif language is None:
|
55 |
raise gr.Error('Please select google translator!')
|
56 |
elif TR_LANGUAGE != tr:
|
57 |
-
gl
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
elif float(gain_time(video)) > 60:
|
63 |
raise gr.Error('Exceed maximum limit!')
|
64 |
|
|
|
54 |
elif language is None:
|
55 |
raise gr.Error('Please select google translator!')
|
56 |
elif TR_LANGUAGE != tr:
|
57 |
+
if gl is True:
|
58 |
+
gl = False
|
59 |
+
raise gr.Error('Language has been reloaded, please select again!')
|
60 |
+
elif TR_LANGUAGE == tr:
|
61 |
+
if gl is False:
|
62 |
+
gl = True
|
63 |
+
raise gr.Error('Language has been reloaded, please select again!')
|
64 |
elif float(gain_time(video)) > 60:
|
65 |
raise gr.Error('Exceed maximum limit!')
|
66 |
|