Hev832 commited on
Commit
c0ce2a0
1 Parent(s): 16e479e

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
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',