Spaces:
Paused
Paused
Upload 2 files
Browse files- Dockerfile +1 -1
- 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:
|