AWeirdDev commited on
Commit
48367a0
·
verified ·
1 Parent(s): 73fd97f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,6 +14,6 @@ def get_caption(image: str, question: str):
14
 
15
  @app.post("/caption")
16
  async def captioning(image: str, question):
17
- return JSONResponse({"caption": asyncio.to_thread(get_caption, image, question)})
18
 
19
  # yo
 
14
 
15
  @app.post("/caption")
16
  async def captioning(image: str, question):
17
+ return JSONResponse({"caption": await asyncio.to_thread(get_caption, image, question)})
18
 
19
  # yo