Ashrafb commited on
Commit
bb899ea
·
verified ·
1 Parent(s): 4052a8f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -31,7 +31,7 @@ async def answer(image: UploadFile = File(...), Question: str = Form(...)):
31
  temp_file_path = temp_file.name
32
  description = predict_image_description(temp_file_path, Question)
33
  os.unlink(temp_file_path)
34
- return {description}
35
  except Exception as e:
36
  raise HTTPException(status_code=500, detail=str(e))
37
 
 
31
  temp_file_path = temp_file.name
32
  description = predict_image_description(temp_file_path, Question)
33
  os.unlink(temp_file_path)
34
+ return description
35
  except Exception as e:
36
  raise HTTPException(status_code=500, detail=str(e))
37