Fred808 commited on
Commit
5740992
·
verified ·
1 Parent(s): e3ae7cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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}