Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -271,8 +271,8 @@ if uploaded_video:
|
|
271 |
video_duration = get_video_length(temp_video.name)
|
272 |
os.unlink(temp_video.name) # Clean up temp file
|
273 |
|
274 |
-
# Subtitle generation toggle, disabled if video is longer than
|
275 |
-
should_generate_subs = st.toggle("Generate Subtitles.", disabled=video_duration > 7200, value=True) # Renamed variable
|
276 |
|
277 |
|
278 |
if video_duration > 1180:
|
|
|
271 |
video_duration = get_video_length(temp_video.name)
|
272 |
os.unlink(temp_video.name) # Clean up temp file
|
273 |
|
274 |
+
# Subtitle generation toggle, disabled if video is longer than 2 hours
|
275 |
+
should_generate_subs = st.toggle("Generate Subtitles. - If enabled, the subtitles will automatically be translated into English.", disabled=video_duration > 7200, value=True) # Renamed variable
|
276 |
|
277 |
|
278 |
if video_duration > 1180:
|