Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,8 @@ import gradio as gr
|
|
| 2 |
import yt_dlp
|
| 3 |
import os
|
| 4 |
import json
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def dl(inp):
|
| 7 |
out = None
|
|
@@ -23,7 +25,7 @@ def dl(inp):
|
|
| 23 |
out = None
|
| 24 |
return out
|
| 25 |
|
| 26 |
-
with gr.Blocks() as
|
| 27 |
inp_url = gr.Textbox()
|
| 28 |
go_btn = gr.Button("Run")
|
| 29 |
with gr.Row():
|
|
@@ -33,4 +35,4 @@ with gr.Blocks() as app:
|
|
| 33 |
outp_file=gr.Textbox()
|
| 34 |
go_btn.click(dl,inp_url,outp_file)
|
| 35 |
|
| 36 |
-
|
|
|
|
| 2 |
import yt_dlp
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
+
import params
|
| 6 |
+
|
| 7 |
|
| 8 |
def dl(inp):
|
| 9 |
out = None
|
|
|
|
| 25 |
out = None
|
| 26 |
return out
|
| 27 |
|
| 28 |
+
with gr.Blocks() as appy:
|
| 29 |
inp_url = gr.Textbox()
|
| 30 |
go_btn = gr.Button("Run")
|
| 31 |
with gr.Row():
|
|
|
|
| 35 |
outp_file=gr.Textbox()
|
| 36 |
go_btn.click(dl,inp_url,outp_file)
|
| 37 |
|
| 38 |
+
appy.launch()
|