Spaces:
Sleeping
Sleeping
Commit ·
9bc9d8e
1
Parent(s): 4693605
snapshot
Browse files- app/routers/video.py +1 -1
app/routers/video.py
CHANGED
|
@@ -107,7 +107,7 @@ async def process_video_and_return_url(video_file: UploadFile):
|
|
| 107 |
logger.info(f"Output directory created or already exists: {output_dir}")
|
| 108 |
if not os.access(output_dir, os.W_OK):
|
| 109 |
raise PermissionError(f"Cannot write to directory: {output_dir}")
|
| 110 |
-
output_image_path = f"
|
| 111 |
logger.info(f"Output image path: {output_image_path}")
|
| 112 |
print(output_image_path)
|
| 113 |
# output_image_path = (os.path.join(output_dir, f"{os.path.splitext(video_file.filename)[0]}_first_frame.png")).replace("\\", "/")
|
|
|
|
| 107 |
logger.info(f"Output directory created or already exists: {output_dir}")
|
| 108 |
if not os.access(output_dir, os.W_OK):
|
| 109 |
raise PermissionError(f"Cannot write to directory: {output_dir}")
|
| 110 |
+
output_image_path = f"./code/output_frames/{os.path.splitext(video_file.filename)[0]}_first_frame.png"
|
| 111 |
logger.info(f"Output image path: {output_image_path}")
|
| 112 |
print(output_image_path)
|
| 113 |
# output_image_path = (os.path.join(output_dir, f"{os.path.splitext(video_file.filename)[0]}_first_frame.png")).replace("\\", "/")
|