SPACERUNNER99 commited on
Commit
1584125
·
verified ·
1 Parent(s): c4af23a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -397,16 +397,12 @@ def process_video(url, type):
397
  current_time = time.strftime("%H:%M:%S", t)
398
  print("Current Time =", current_time)
399
 
400
- # Generate the URL for the file
401
- file_url = f"https://spacerunner99-sub-gen-public.hf.space/gradio_api/file/{output_video_file}"
402
- return file_url
403
-
404
- def print_link(file_url):
405
- print(f"File available at: {file_url}")
406
 
407
- #def download_file(file_path):
408
- # return gr.File.update(file_path)
409
 
410
- iface = gr.Interface(fn=process_video, inputs=["text" ,gr.Dropdown(["insta", "youtube"])], outputs=gr.Textbox(label="File URL"))
411
 
412
  iface.launch(debug=True)
 
397
  current_time = time.strftime("%H:%M:%S", t)
398
  print("Current Time =", current_time)
399
 
400
+ # Generate the URL for the file
401
+ return output_video_file
 
 
 
 
402
 
403
+ def download_file(file_path):
404
+ return gr.File.update(file_path)
405
 
406
+ iface = gr.Interface(fn=process_video, inputs=["text" ,gr.Dropdown(["insta", "youtube"])], outputs="file"))
407
 
408
  iface.launch(debug=True)