Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
402 |
-
return file_url
|
403 |
-
|
404 |
-
def print_link(file_url):
|
405 |
-
print(f"File available at: {file_url}")
|
406 |
|
407 |
-
|
408 |
-
|
409 |
|
410 |
-
iface = gr.Interface(fn=process_video, inputs=["text" ,gr.Dropdown(["insta", "youtube"])], outputs=
|
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)
|