Spaces:
Runtime error
Runtime error
Commit ·
2aeadde
1
Parent(s): 77e0e67
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def download_audio_(link):
|
|
| 22 |
def download_audio(id_video):
|
| 23 |
id = id_video.split("?v=")[-1][:11]
|
| 24 |
audio_file = download_audio_(id_video)
|
| 25 |
-
audio_file = audio_file+'.mp3'
|
| 26 |
audio_file = 'audio.mp3'
|
| 27 |
embed_html_all = embed_html1 + id +embed_html2
|
| 28 |
return audio_file, audio_file, embed_html_all
|
|
@@ -53,7 +53,7 @@ def process(audio_file, embed_html_all):
|
|
| 53 |
break
|
| 54 |
time.sleep(1)
|
| 55 |
|
| 56 |
-
|
| 57 |
res = results[1]["response"]["tagging"]["2"]
|
| 58 |
|
| 59 |
dict_moods = {}
|
|
|
|
| 22 |
def download_audio(id_video):
|
| 23 |
id = id_video.split("?v=")[-1][:11]
|
| 24 |
audio_file = download_audio_(id_video)
|
| 25 |
+
#audio_file = audio_file+'.mp3'
|
| 26 |
audio_file = 'audio.mp3'
|
| 27 |
embed_html_all = embed_html1 + id +embed_html2
|
| 28 |
return audio_file, audio_file, embed_html_all
|
|
|
|
| 53 |
break
|
| 54 |
time.sleep(1)
|
| 55 |
|
| 56 |
+
os.system('rm -f audio.mp3')
|
| 57 |
res = results[1]["response"]["tagging"]["2"]
|
| 58 |
|
| 59 |
dict_moods = {}
|