Hev832 commited on
Commit
9da3955
1 Parent(s): 211321f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -254,10 +254,8 @@ def download_from_url(url_yt, audioname):
254
  }
255
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
256
  ydl.download([urlyt])
257
-
258
- def audio_downloader(url):
259
- download_from_url(url)
260
- return outtmpl
261
 
262
 
263
 
@@ -316,7 +314,7 @@ with gr.Blocks(theme="ParityError/Interstellar") as app:
316
  audio_name2 = gr.Textbox(label="audio name")
317
  outputs_audiq = gr.Textbox(label="audio outputs")
318
  download_yt_button = gr.Button("download")
319
- download_yt_button.click(fn=audio_downloader, inputs=[url_yt1, audio_name2,],outputs=[outputs_audiq])
320
 
321
 
322
  with gr.Row():
 
254
  }
255
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
256
  ydl.download([urlyt])
257
+
258
+ return f"outtmpl"
 
 
259
 
260
 
261
 
 
314
  audio_name2 = gr.Textbox(label="audio name")
315
  outputs_audiq = gr.Textbox(label="audio outputs")
316
  download_yt_button = gr.Button("download")
317
+ download_yt_button.click(fn=download_from_url, inputs=[url_yt1, audio_name2,],outputs=[outputs_audiq])
318
 
319
 
320
  with gr.Row():