Spaces:
Runtime error
Runtime error
gmerrill
commited on
Commit
·
3316b9b
1
Parent(s):
f99e419
update
Browse files
main.py
CHANGED
@@ -8,7 +8,7 @@ app = FastAPI()
|
|
8 |
|
9 |
@app.post("/query_gorilla")
|
10 |
def query_gorilla(req: Request):
|
11 |
-
|
12 |
return str(json)
|
13 |
|
14 |
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
|
|
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")
|