Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def take_screenshot(url):
|
|
12 |
|
13 |
try:
|
14 |
wd = webdriver.Chrome(options=options)
|
15 |
-
wd.set_window_size(
|
16 |
wd.get(url)
|
17 |
wd.implicitly_wait(30)
|
18 |
screenshot = wd.get_screenshot_as_png()
|
|
|
12 |
|
13 |
try:
|
14 |
wd = webdriver.Chrome(options=options)
|
15 |
+
wd.set_window_size(1345, 846) # Adjust the window size here
|
16 |
wd.get(url)
|
17 |
wd.implicitly_wait(30)
|
18 |
screenshot = wd.get_screenshot_as_png()
|