Commit 610ab229 authored by Paranagama R.P.S.D.'s avatar Paranagama R.P.S.D.

fix

parent cd07d474
...@@ -40,7 +40,6 @@ async def upload_video(video: UploadFile = File(...)): ...@@ -40,7 +40,6 @@ async def upload_video(video: UploadFile = File(...)):
@router.post('/predict-sign-language') @router.post('/predict-sign-language')
def predict(image_request: UploadFile = File(...)): def predict(image_request: UploadFile = File(...)):
try: try:
file_location = f"files/{image_request.filename}" file_location = f"files/{image_request.filename}"
with open(file_location, "wb") as file: with open(file_location, "wb") as file:
file.write(image_request.file.read()) file.write(image_request.file.read())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment