Spaces:
Paused
Paused
robinroy03
commited on
Commit
•
f1be0fe
1
Parent(s):
3ebd2b4
fixed mime type error
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ async def embedding_output(message: str) -> list:
|
|
72 |
|
73 |
async with aiohttp.ClientSession() as session:
|
74 |
async with session.post(URL_EMBEDDING + "/embedding", json={"text": message}) as response:
|
75 |
-
response_json = await response.json()
|
76 |
|
77 |
return response_json['output']
|
78 |
|
|
|
72 |
|
73 |
async with aiohttp.ClientSession() as session:
|
74 |
async with session.post(URL_EMBEDDING + "/embedding", json={"text": message}) as response:
|
75 |
+
response_json = await response.json(content_type=None)
|
76 |
|
77 |
return response_json['output']
|
78 |
|