Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1322,6 +1322,8 @@ def download_video(video_url, download_path, info_dict, download_video_flag):
|
|
| 1322 |
if download_video_flag:
|
| 1323 |
video_file_path = os.path.join(download_path, f"{normalized_video_title}.mp4")
|
| 1324 |
|
|
|
|
|
|
|
| 1325 |
# Set options for video and audio
|
| 1326 |
ydl_opts_video = {
|
| 1327 |
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]',
|
|
@@ -4053,7 +4055,7 @@ def launch_ui(demo_mode=False):
|
|
| 4053 |
outputs=outputs,
|
| 4054 |
title="Video Transcription and Summarization",
|
| 4055 |
description="Submit a video URL for transcription and summarization. Ensure you input all necessary "
|
| 4056 |
-
"information including API keys.
|
| 4057 |
theme='freddyaboulton/dracula_revamped',
|
| 4058 |
allow_flagging="never"
|
| 4059 |
)
|
|
@@ -4662,7 +4664,7 @@ def main(input_path, api_name=None, api_key=None,
|
|
| 4662 |
whisper_model="small.en",
|
| 4663 |
offset=0,
|
| 4664 |
vad_filter=False,
|
| 4665 |
-
download_video_flag=
|
| 4666 |
custom_prompt=None,
|
| 4667 |
overwrite=False,
|
| 4668 |
rolling_summarization=False,
|
|
|
|
| 1322 |
if download_video_flag:
|
| 1323 |
video_file_path = os.path.join(download_path, f"{normalized_video_title}.mp4")
|
| 1324 |
|
| 1325 |
+
# Dirty hack until I figure out whats going on.... FIXME
|
| 1326 |
+
download_video_flag = True
|
| 1327 |
# Set options for video and audio
|
| 1328 |
ydl_opts_video = {
|
| 1329 |
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]',
|
|
|
|
| 4055 |
outputs=outputs,
|
| 4056 |
title="Video Transcription and Summarization",
|
| 4057 |
description="Submit a video URL for transcription and summarization. Ensure you input all necessary "
|
| 4058 |
+
"information including API keys.",
|
| 4059 |
theme='freddyaboulton/dracula_revamped',
|
| 4060 |
allow_flagging="never"
|
| 4061 |
)
|
|
|
|
| 4664 |
whisper_model="small.en",
|
| 4665 |
offset=0,
|
| 4666 |
vad_filter=False,
|
| 4667 |
+
download_video_flag=True,
|
| 4668 |
custom_prompt=None,
|
| 4669 |
overwrite=False,
|
| 4670 |
rolling_summarization=False,
|