Spaces:
Running
Running
Update app.py
#1
by
kavehtaheri
- opened
app.py
CHANGED
@@ -388,6 +388,8 @@ def process_video(url, type):
|
|
388 |
elif type=="youtube":
|
389 |
input_video, input_audio = one_youtube(url, api_key)
|
390 |
input_video_name = input_video.replace(".mp4", "")
|
|
|
|
|
391 |
# Get the current local time
|
392 |
t = time.localtime()
|
393 |
# Format the time as a string
|
@@ -424,6 +426,6 @@ def process_video(url, type):
|
|
424 |
def download_file(file_path):
|
425 |
return gr.File.update(file_path)
|
426 |
|
427 |
-
iface = gr.Interface(fn=process_video, inputs=["text" ,gr.Dropdown(["insta", "youtube"])], outputs="file")
|
428 |
|
429 |
iface.launch(debug=True)
|
|
|
388 |
elif type=="youtube":
|
389 |
input_video, input_audio = one_youtube(url, api_key)
|
390 |
input_video_name = input_video.replace(".mp4", "")
|
391 |
+
elif type=="bale":
|
392 |
+
|
393 |
# Get the current local time
|
394 |
t = time.localtime()
|
395 |
# Format the time as a string
|
|
|
426 |
def download_file(file_path):
|
427 |
return gr.File.update(file_path)
|
428 |
|
429 |
+
iface = gr.Interface(fn=process_video, inputs=[["text","file"] ,gr.Dropdown(["insta","bale", "youtube"])], outputs="file")
|
430 |
|
431 |
iface.launch(debug=True)
|