Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
0e72faf
1
Parent(s):
eef5ae0
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ def get_video(url):
|
|
45 |
if(mp4_1080p_files) mp4_1080p_files.download(temp_addr)
|
46 |
|
47 |
notify = "Video(s) fetched successfuly."
|
|
|
48 |
return True
|
49 |
|
50 |
def extract_audio():
|
@@ -55,12 +56,13 @@ def extract_audio():
|
|
55 |
|
56 |
snapshot_download(repo_id="Campfireman/YouTubeAudioGrabNTake", allow_patterns="*.mp3")
|
57 |
notify = "Sucess. Download request will be pulled up soon. "
|
|
|
58 |
|
59 |
def extrator_pipeline(url):
|
60 |
#clean_up()
|
61 |
get_video(url)
|
62 |
extract_audio()
|
63 |
-
return
|
64 |
|
65 |
demo = gr.Interface(fn=extrator_pipeline, inputs="text", outputs="text")
|
66 |
demo.launch()
|
|
|
45 |
if(mp4_1080p_files) mp4_1080p_files.download(temp_addr)
|
46 |
|
47 |
notify = "Video(s) fetched successfuly."
|
48 |
+
print(notify)
|
49 |
return True
|
50 |
|
51 |
def extract_audio():
|
|
|
56 |
|
57 |
snapshot_download(repo_id="Campfireman/YouTubeAudioGrabNTake", allow_patterns="*.mp3")
|
58 |
notify = "Sucess. Download request will be pulled up soon. "
|
59 |
+
print(notify)
|
60 |
|
61 |
def extrator_pipeline(url):
|
62 |
#clean_up()
|
63 |
get_video(url)
|
64 |
extract_audio()
|
65 |
+
return notify
|
66 |
|
67 |
demo = gr.Interface(fn=extrator_pipeline, inputs="text", outputs="text")
|
68 |
demo.launch()
|