sergeipetrov commited on
Commit
1ed1d13
·
verified ·
1 Parent(s): aeb37a7

Update src/main.py

Browse files
Files changed (1) hide show
  1. 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: