Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -411,8 +411,10 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
|
|
411 |
def process_video(video, url, type):
|
412 |
|
413 |
if isinstance(video, str):
|
414 |
-
|
415 |
-
|
|
|
|
|
416 |
else:
|
417 |
if type=="insta":
|
418 |
input_video=insta_oneapi(url, api_key)
|
|
|
411 |
def process_video(video, url, type):
|
412 |
|
413 |
if isinstance(video, str):
|
414 |
+
input_video = video.split("/")[-1]
|
415 |
+
print(input_video)
|
416 |
+
input_audio = extract_audio(input_video)
|
417 |
+
input_video_name = input_video.replace(".mp4", "")
|
418 |
else:
|
419 |
if type=="insta":
|
420 |
input_video=insta_oneapi(url, api_key)
|