gmerrill commited on
Commit
fae36f8
·
1 Parent(s): 3316b9b
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -7,9 +7,9 @@ from transformers import pipeline
7
  app = FastAPI()
8
 
9
  @app.post("/query_gorilla")
10
- def query_gorilla(req: Request):
11
- json = await request.json()
12
- return str(json)
13
 
14
  app.mount("/", StaticFiles(directory="static", html=True), name="static")
15
 
 
7
  app = FastAPI()
8
 
9
  @app.post("/query_gorilla")
10
+ async def query_gorilla(req: Request):
11
+ body = await request.body()
12
+ return str(body)
13
 
14
  app.mount("/", StaticFiles(directory="static", html=True), name="static")
15