Spaces:
Build error
Build error
Jeril commited on
Commit ·
937a6e9
1
Parent(s): b5a2552
some fixes
Browse files
app.py
CHANGED
|
@@ -4,9 +4,8 @@ import os
|
|
| 4 |
|
| 5 |
def extract_audio_from_video(video, start_time, end_time, use_time_cutting):
|
| 6 |
if not video:
|
| 7 |
-
gr.
|
| 8 |
-
|
| 9 |
-
|
| 10 |
input_file = video
|
| 11 |
output_file = "media/extracted_audio.mp3"
|
| 12 |
|
|
|
|
| 4 |
|
| 5 |
def extract_audio_from_video(video, start_time, end_time, use_time_cutting):
|
| 6 |
if not video:
|
| 7 |
+
raise gr.Error("No video file selected")
|
| 8 |
+
|
|
|
|
| 9 |
input_file = video
|
| 10 |
output_file = "media/extracted_audio.mp3"
|
| 11 |
|