Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -100,13 +100,13 @@ def run_script1(url: str, height: int, width: int, check_b,check_h):
|
|
100 |
else:
|
101 |
return None, '<center>Please enter a valid URL of a website/host.',out_box,out
|
102 |
|
103 |
-
def run_script(
|
104 |
mes_box=[]
|
105 |
out_box=[]
|
106 |
uid=uuid.uuid4()
|
107 |
out=None
|
108 |
is_url=True
|
109 |
-
url='https://omnibus-snap.hf.space/?chat=
|
110 |
|
111 |
if is_url:
|
112 |
options = webdriver.ChromeOptions()
|
@@ -181,7 +181,7 @@ with gr.Blocks() as app:
|
|
181 |
|
182 |
with gr.Row():
|
183 |
with gr.Column():
|
184 |
-
inp = gr.Textbox(label="URL (must be Public)",lines=
|
185 |
wait_t=gr.Slider(1, 10000, value=2000, label="Wait time", info="Wait for page to load. More data = Longer wait")
|
186 |
with gr.Row():
|
187 |
btn= gr.Button("Snapshot")
|
|
|
100 |
else:
|
101 |
return None, '<center>Please enter a valid URL of a website/host.',out_box,out
|
102 |
|
103 |
+
def run_script(chat: list, height: int, width: int, check_b,check_h,wait_time):
|
104 |
mes_box=[]
|
105 |
out_box=[]
|
106 |
uid=uuid.uuid4()
|
107 |
out=None
|
108 |
is_url=True
|
109 |
+
url=f'https://omnibus-snap.hf.space/?chat={chat}&__theme=emerald'
|
110 |
|
111 |
if is_url:
|
112 |
options = webdriver.ChromeOptions()
|
|
|
181 |
|
182 |
with gr.Row():
|
183 |
with gr.Column():
|
184 |
+
inp = gr.Textbox(label="URL (must be Public)",lines=6,value=[(123,555),(2342,32344)])
|
185 |
wait_t=gr.Slider(1, 10000, value=2000, label="Wait time", info="Wait for page to load. More data = Longer wait")
|
186 |
with gr.Row():
|
187 |
btn= gr.Button("Snapshot")
|