Spaces:
Runtime error
Runtime error
kargaranamir
commited on
change v3 to v4.
Browse files
app.py
CHANGED
@@ -26,10 +26,10 @@ def take_screenshot(url):
|
|
26 |
|
27 |
iface = gr.Interface(
|
28 |
fn=take_screenshot,
|
29 |
-
inputs=gr.
|
30 |
-
outputs=gr.Image(type="pil",
|
31 |
title="Website Screenshot",
|
32 |
-
description="Take a screenshot of a website."
|
33 |
)
|
34 |
|
35 |
iface.launch()
|
|
|
26 |
|
27 |
iface = gr.Interface(
|
28 |
fn=take_screenshot,
|
29 |
+
inputs=gr.Textbox(label="Website URL", default="https://kargaranamir.github.io"),
|
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 |
)
|
34 |
|
35 |
iface.launch()
|