kargaranamir commited on
Commit
c602fc5
1 Parent(s): c3b7bd1

change size

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(1920, 1080) # Adjust the window size here
16
  wd.get(url)
17
  wd.implicitly_wait(10)
18
  screenshot = wd.get_screenshot_as_png()
@@ -27,7 +27,7 @@ def take_screenshot(url):
27
  iface = gr.Interface(
28
  fn=take_screenshot,
29
  inputs=gr.inputs.Textbox(label="Website URL", default="https://kargaranamir.github.io"),
30
- outputs=gr.Image(type="pil", height=600, width=800), # Adjust the image size here
31
  title="Website Screenshot",
32
  description="Take a screenshot of a website.",
33
  )
 
12
 
13
  try:
14
  wd = webdriver.Chrome(options=options)
15
+ wd.set_window_size(1080, 720) # Adjust the window size here
16
  wd.get(url)
17
  wd.implicitly_wait(10)
18
  screenshot = wd.get_screenshot_as_png()
 
27
  iface = gr.Interface(
28
  fn=take_screenshot,
29
  inputs=gr.inputs.Textbox(label="Website URL", default="https://kargaranamir.github.io"),
30
+ outputs=gr.Image(type="pil", height=360, width=540), # Adjust the image size here
31
  title="Website Screenshot",
32
  description="Take a screenshot of a website.",
33
  )