Spaces:
Runtime error
Runtime error
Update run.py
Browse files
run.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import yt_dlp
|
3 |
import os
|
4 |
-
|
5 |
def download_media(url, media_type):
|
6 |
ydl_opts = {
|
7 |
'format': 'bestaudio/best' if media_type == 'audio' else 'bestvideo+bestaudio',
|
|
|
1 |
import gradio as gr
|
2 |
import yt_dlp
|
3 |
import os
|
4 |
+
os.system("pip yt_dlp -U")
|
5 |
def download_media(url, media_type):
|
6 |
ydl_opts = {
|
7 |
'format': 'bestaudio/best' if media_type == 'audio' else 'bestvideo+bestaudio',
|