Spaces:
Runtime error
Runtime error
seawolf2357
commited on
Commit
•
a9a06d9
1
Parent(s):
3f176c4
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def pred(product_name, orientation):
|
|
49 |
def combine_videos(video_files, output_folder):
|
50 |
if not video_files:
|
51 |
print("No video files to combine.")
|
52 |
-
return
|
53 |
|
54 |
clips = [VideoFileClip(vf) for vf in video_files]
|
55 |
final_clip = concatenate_videoclips(clips)
|
@@ -82,10 +82,11 @@ def pred(product_name, orientation):
|
|
82 |
return ["No videos generated. Please try again.", ""]
|
83 |
|
84 |
# 비디오 파일 결합
|
85 |
-
video_path = utils.combine_videos(folder_name)
|
86 |
-
if not os.path.exists(video_path):
|
87 |
-
return ["Failed to combine videos.", ""]
|
88 |
|
|
|
|
|
|
|
|
|
89 |
return ["\n".join(sentences), video_path]
|
90 |
|
91 |
# Gradio 인터페이스 설정 및 런칭
|
|
|
49 |
def combine_videos(video_files, output_folder):
|
50 |
if not video_files:
|
51 |
print("No video files to combine.")
|
52 |
+
return "" # 빈 문자열 반환
|
53 |
|
54 |
clips = [VideoFileClip(vf) for vf in video_files]
|
55 |
final_clip = concatenate_videoclips(clips)
|
|
|
82 |
return ["No videos generated. Please try again.", ""]
|
83 |
|
84 |
# 비디오 파일 결합
|
|
|
|
|
|
|
85 |
|
86 |
+
video_path = combine_videos(video_files, folder_name)
|
87 |
+
if not video_path or not os.path.exists(video_path):
|
88 |
+
return ["Failed to combine videos.", ""]
|
89 |
+
|
90 |
return ["\n".join(sentences), video_path]
|
91 |
|
92 |
# Gradio 인터페이스 설정 및 런칭
|