Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -163,11 +163,12 @@ async def browser_request(base64_image_str: str, question: str) -> str | None:
|
|
163 |
async with async_playwright() as playwright:
|
164 |
browser = await playwright.chromium.launch(headless=True, args=['--disable-blink-features=AutomationControlled'])
|
165 |
context = await browser.new_context(
|
|
|
|
|
166 |
color_scheme='dark',
|
167 |
ignore_https_errors=True,
|
168 |
locale='en-US',
|
169 |
user_agent=ua.random,
|
170 |
-
no_viewport=True,
|
171 |
)
|
172 |
try:
|
173 |
page = await context.new_page()
|
|
|
163 |
async with async_playwright() as playwright:
|
164 |
browser = await playwright.chromium.launch(headless=True, args=['--disable-blink-features=AutomationControlled'])
|
165 |
context = await browser.new_context(
|
166 |
+
viewport={'width': 2560, 'height': 1440},
|
167 |
+
screen={'width': 2560, 'height': 1286},
|
168 |
color_scheme='dark',
|
169 |
ignore_https_errors=True,
|
170 |
locale='en-US',
|
171 |
user_agent=ua.random,
|
|
|
172 |
)
|
173 |
try:
|
174 |
page = await context.new_page()
|