recycleactor commited on
Commit
3bc3dc0
·
verified ·
1 Parent(s): d8a60ae

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -1
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.11-slim
2
 
3
- RUN pip install --no-cache-dir fastapi uvicorn httpx playwright
4
 
5
  RUN playwright install --with-deps chromium
6
 
 
1
  FROM python:3.11-slim
2
 
3
+ RUN pip install --no-cache-dir fastapi uvicorn "httpx[http2]" playwright
4
 
5
  RUN playwright install --with-deps chromium
6
 
app.py CHANGED
@@ -490,8 +490,8 @@ async def veoveo_embed(url: str):
490
 
491
  # Try with different transport settings
492
  for attempt, kwargs in enumerate([
 
493
  {"timeout": 20, "follow_redirects": True},
494
- {"timeout": 20, "follow_redirects": True, "verify": False},
495
  ]):
496
  try:
497
  async with httpx.AsyncClient(**kwargs) as client:
 
490
 
491
  # Try with different transport settings
492
  for attempt, kwargs in enumerate([
493
+ {"timeout": 20, "follow_redirects": True, "http2": True},
494
  {"timeout": 20, "follow_redirects": True},
 
495
  ]):
496
  try:
497
  async with httpx.AsyncClient(**kwargs) as client: