Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ app = FastAPI()
|
|
| 10 |
|
| 11 |
@app.post("/vision")
|
| 12 |
async def process_vision(image: UploadFile = File(...)):
|
| 13 |
-
with open("frame.jpg", "wb") as f:
|
| 14 |
-
shutil.copyfileobj(image.file, f)
|
| 15 |
-
desc = describe_image("frame.jpg")
|
| 16 |
-
return {"description": desc}
|
|
|
|
| 10 |
|
| 11 |
@app.post("/vision")
|
| 12 |
async def process_vision(image: UploadFile = File(...)):
|
| 13 |
+
with open("frame.jpg", "wb") as f:
|
| 14 |
+
shutil.copyfileobj(image.file, f)
|
| 15 |
+
desc = describe_image("frame.jpg")
|
| 16 |
+
return {"description": desc}
|