Update main.py
Browse files
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
|
| 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 |
|