Spaces:
Runtime error
Runtime error
Update src/main.py
Browse files- src/main.py +1 -2
src/main.py
CHANGED
@@ -141,8 +141,7 @@ async def embed_sent(sentence, semaphore, tmp_file):
|
|
141 |
headers={
|
142 |
"Content-Type": "application/json",
|
143 |
"Authorization": f"Bearer {HF_TOKEN}"
|
144 |
-
}
|
145 |
-
trust_env=True
|
146 |
) as session:
|
147 |
async with session.post(TEI_URL, json=payload) as resp:
|
148 |
if resp.status != 200:
|
|
|
141 |
headers={
|
142 |
"Content-Type": "application/json",
|
143 |
"Authorization": f"Bearer {HF_TOKEN}"
|
144 |
+
}
|
|
|
145 |
) as session:
|
146 |
async with session.post(TEI_URL, json=payload) as resp:
|
147 |
if resp.status != 200:
|