v3 to v4.
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ def take_screenshot(url):
|
|
| 26 |
|
| 27 |
iface = gr.Interface(
|
| 28 |
fn=take_screenshot,
|
| 29 |
-
inputs=gr.Textbox(label="Website URL",
|
| 30 |
-
outputs=gr.Image(type="pil", label="Screenshot"), # Adjust the image size here
|
| 31 |
title="Website Screenshot",
|
| 32 |
description="Take a screenshot of a website."
|
| 33 |
)
|
|
|
|
| 26 |
|
| 27 |
iface = gr.Interface(
|
| 28 |
fn=take_screenshot,
|
| 29 |
+
inputs=gr.Textbox(label="Website URL", value="https://kargaranamir.github.io"),
|
| 30 |
+
outputs=gr.Image(type="pil", label="Screenshot", height=360, width=540), # Adjust the image size here
|
| 31 |
title="Website Screenshot",
|
| 32 |
description="Take a screenshot of a website."
|
| 33 |
)
|