Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,13 +29,13 @@ def save_audio(title, html_url):
|
|
| 29 |
#audio_content = get_response(audio_url).content
|
| 30 |
video_content = get_response(video_url).content
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
with open(title + '.mp4', mode='wb') as f:
|
| 36 |
-
|
| 37 |
-
print("视频内容保存完成")
|
| 38 |
-
return f"{title}.
|
| 39 |
|
| 40 |
|
| 41 |
with gr.Blocks() as demo:
|
|
|
|
| 29 |
#audio_content = get_response(audio_url).content
|
| 30 |
video_content = get_response(video_url).content
|
| 31 |
|
| 32 |
+
with open(title + '.mp3', mode='wb') as f:
|
| 33 |
+
f.write(audio_content)
|
| 34 |
+
print("音乐内容保存完成")
|
| 35 |
+
#with open(title + '.mp4', mode='wb') as f:
|
| 36 |
+
# f.write(video_content)
|
| 37 |
+
#print("视频内容保存完成")
|
| 38 |
+
return f"{title}.mp3"
|
| 39 |
|
| 40 |
|
| 41 |
with gr.Blocks() as demo:
|