Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import yt_dlp
|
|
3 |
import os
|
4 |
import json
|
5 |
import params
|
6 |
-
params.app.load()
|
7 |
|
8 |
def dl(inp):
|
9 |
out = None
|
@@ -34,5 +34,5 @@ with gr.Blocks() as appy:
|
|
34 |
with gr.Column():
|
35 |
outp_file=gr.Textbox()
|
36 |
go_btn.click(dl,inp_url,outp_file)
|
37 |
-
|
38 |
appy.launch()
|
|
|
3 |
import os
|
4 |
import json
|
5 |
import params
|
6 |
+
#params.app.load()
|
7 |
|
8 |
def dl(inp):
|
9 |
out = None
|
|
|
34 |
with gr.Column():
|
35 |
outp_file=gr.Textbox()
|
36 |
go_btn.click(dl,inp_url,outp_file)
|
37 |
+
appy.load(fn=params.predict, inputs=[text_input,url_params], outputs=[text_output,text_input],_js=params.load_js)
|
38 |
appy.launch()
|