Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def get_youtube(video_url):
|
|
150 |
|
151 |
def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_speakers):
|
152 |
"""
|
153 |
-
#
|
154 |
This space allows you to:
|
155 |
1. Download youtube video with a given url
|
156 |
2. Watch it in the first video component
|
@@ -245,7 +245,7 @@ youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
|
|
245 |
video_out = gr.Video(label="Video Out", mirror_webcam=False)
|
246 |
|
247 |
|
248 |
-
df_init = pd.DataFrame(columns=['Start','End', 'Speaker', 'Text'])
|
249 |
|
250 |
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="Spoken language in video", interactive=True)
|
251 |
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="Selected Whisper model", interactive=True)
|
|
|
150 |
|
151 |
def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_speakers):
|
152 |
"""
|
153 |
+
# Transcribe youtube link using OpenAI Whisper
|
154 |
This space allows you to:
|
155 |
1. Download youtube video with a given url
|
156 |
2. Watch it in the first video component
|
|
|
245 |
video_out = gr.Video(label="Video Out", mirror_webcam=False)
|
246 |
|
247 |
|
248 |
+
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
249 |
|
250 |
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="Spoken language in video", interactive=True)
|
251 |
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="Selected Whisper model", interactive=True)
|