Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import os
|
2 |
-
import time
|
3 |
import random
|
4 |
import gradio as gr
|
5 |
from selenium import webdriver
|
@@ -37,7 +36,6 @@ def main(url):
|
|
37 |
|
38 |
driver.set_window_size(page_width, page_height)
|
39 |
|
40 |
-
time.sleep(3)
|
41 |
filename = str(random.randint(111111111, 999999999)) + ".png"
|
42 |
file_path = os.path.join(os.path.dirname(__file__), filename)
|
43 |
driver.save_screenshot(file_path)
|
|
|
1 |
import os
|
|
|
2 |
import random
|
3 |
import gradio as gr
|
4 |
from selenium import webdriver
|
|
|
36 |
|
37 |
driver.set_window_size(page_width, page_height)
|
38 |
|
|
|
39 |
filename = str(random.randint(111111111, 999999999)) + ".png"
|
40 |
file_path = os.path.join(os.path.dirname(__file__), filename)
|
41 |
driver.save_screenshot(file_path)
|