Skip to content

Commit 28d4097

Browse files
Update depthmap_api.py
When type is video just return success. The file and the path is determined by the property "output_filename" from request options
1 parent 74204c8 commit 28d4097

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/depthmap_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ async def process(
7070
if not isinstance(result, Image.Image):
7171
continue
7272
results_based += [encode_to_base64(result)]
73+
74+
if type == 'video':
75+
return {"info": "Success"}
76+
7377
return {"images": results_based, "info": "Success"}
7478

7579

0 commit comments

Comments
 (0)