Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|