Omnibus commited on
Commit
b2b8f0b
1 Parent(s): 2dddd3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def run_script1(url: str, height: int, width: int, check_b,check_h):
56
  #driver.current_window_handle
57
  driver.get(url)
58
  html=driver.page_source
59
- print(html)
60
  driver.implicitly_wait(30)
61
  driver.set_window_size(int(width), int(height))
62
  #page = driver.find_element(By.TAG_NAME, "html")
@@ -183,7 +183,8 @@ def load_frame(inp):
183
  return html_mod
184
 
185
  with gr.Blocks() as app:
186
-
 
187
  with gr.Row():
188
  with gr.Column():
189
  inp = gr.Textbox(label="Chat: [('user','bot'),('user','bot')]",lines=6,value=[('123','555'),('2342','32344')])
 
56
  #driver.current_window_handle
57
  driver.get(url)
58
  html=driver.page_source
59
+ #print(html)
60
  driver.implicitly_wait(30)
61
  driver.set_window_size(int(width), int(height))
62
  #page = driver.find_element(By.TAG_NAME, "html")
 
183
  return html_mod
184
 
185
  with gr.Blocks() as app:
186
+ gr.HTML("""<head><meta http-equiv="refresh" content="180"></head>""")
187
+
188
  with gr.Row():
189
  with gr.Column():
190
  inp = gr.Textbox(label="Chat: [('user','bot'),('user','bot')]",lines=6,value=[('123','555'),('2342','32344')])