Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def embed(text):
|
|
16 |
|
17 |
@app.post("/v1/embeddings")
|
18 |
async def openai_embed(req: Request):
|
19 |
-
body = await
|
20 |
print(body);
|
21 |
model = body['model'];
|
22 |
text = body['input'];
|
|
|
16 |
|
17 |
@app.post("/v1/embeddings")
|
18 |
async def openai_embed(req: Request):
|
19 |
+
body = await req.json();
|
20 |
print(body);
|
21 |
model = body['model'];
|
22 |
text = body['input'];
|