Omnibus commited on
Commit
05af1d5
·
1 Parent(s): 490b04b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ def dl(inp):
9
  try:
10
  inp_out=inp.replace("https://","")
11
  inp_out=inp_out.replace("/","_").replace(".","_")
12
- os.system(f'yt-dlp "{inp}" --trim-filenames 100 -o "{inp_out}.mp4"')
13
  out = f"{inp_out}.mp4"
14
  try:
15
  with open(f"{inp_out}.info.json", "r") as f:
@@ -21,7 +21,7 @@ def dl(inp):
21
  except Exception as e:
22
  print (e)
23
  out = None
24
- return "out"
25
 
26
  with gr.Blocks() as app:
27
  inp_url = gr.Textbox()
 
9
  try:
10
  inp_out=inp.replace("https://","")
11
  inp_out=inp_out.replace("/","_").replace(".","_")
12
+ #os.system(f'yt-dlp "{inp}" --trim-filenames 100 -o "{inp_out}.mp4"')
13
  out = f"{inp_out}.mp4"
14
  try:
15
  with open(f"{inp_out}.info.json", "r") as f:
 
21
  except Exception as e:
22
  print (e)
23
  out = None
24
+ return out
25
 
26
  with gr.Blocks() as app:
27
  inp_url = gr.Textbox()