Omnibus commited on
Commit
9b1d63a
·
1 Parent(s): bd6144a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def run_script(html: str, style: str):
61
  driver.quit()
62
 
63
  #return [Image.open(BytesIO(screenshot)), 'operation success.',cookie_jar,html]
64
- return [Image.open('tmp.png'), 'operation success.',cookie_jar,html]
65
  else:
66
  return [None, 'Please enter a valid URL of a website/host.',None,None]
67
 
@@ -85,7 +85,7 @@ with gr.Blocks() as app:
85
  outim = gr.Image()
86
  with gr.Column():
87
  outp = gr.Textbox()
88
- cook = gr.JSON()
89
  html=gr.Textbox()
90
  btn.click(run_script,[inp,style],[outim,outp,cook,html])
91
  app.launch()
 
61
  driver.quit()
62
 
63
  #return [Image.open(BytesIO(screenshot)), 'operation success.',cookie_jar,html]
64
+ return [Image.open('tmp.png'), 'operation success.',url,html]
65
  else:
66
  return [None, 'Please enter a valid URL of a website/host.',None,None]
67
 
 
85
  outim = gr.Image()
86
  with gr.Column():
87
  outp = gr.Textbox()
88
+ cook = gr.Textbox()
89
  html=gr.Textbox()
90
  btn.click(run_script,[inp,style],[outim,outp,cook,html])
91
  app.launch()