Spaces:
Running
Running
ishworrsubedii
commited on
Commit
·
cf8d524
1
Parent(s):
fe5765b
update: temp dir path
Browse files
app.py
CHANGED
@@ -91,7 +91,8 @@ async def create_video(request: VideoGenerator):
|
|
91 |
status_code=400)
|
92 |
|
93 |
intro_path = f"{RESOURCES_DIR}/intro/{request.intro_video_path}"
|
94 |
-
output_path = f"{TEMP_VIDEO_DIR}/video_{os.urandom(8).hex()}.mp4"
|
|
|
95 |
audio_path = f"{RESOURCES_DIR}/audio/{request.background_audio_path}"
|
96 |
|
97 |
video_creator = VideoCreator(
|
|
|
91 |
status_code=400)
|
92 |
|
93 |
intro_path = f"{RESOURCES_DIR}/intro/{request.intro_video_path}"
|
94 |
+
output_path = f"{TEMP_VIDEO_DIR}/video_{os.urandom(8).hex()}.mp4"
|
95 |
+
font_path = f"{RESOURCES_DIR}/fonts/{request.font_path}"
|
96 |
audio_path = f"{RESOURCES_DIR}/audio/{request.background_audio_path}"
|
97 |
|
98 |
video_creator = VideoCreator(
|