Omnibus commited on
Commit
e38561e
·
verified ·
1 Parent(s): fb4163d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ driver_type = 'chromedriver'
17
  driver=False
18
 
19
 
20
- def html2image():
21
 
22
  html = """<h1> An interesting title </h1> This page will be red"""
23
  css = "body {background: red;}"
@@ -127,6 +127,6 @@ with gr.Blocks() as app:
127
  out=gr.Image()
128
  outgal=gr.Gallery()
129
  outim = gr.Image()
130
- btn.click(html2image,None,out)
131
  #btn.click(run_script,[inp,height,width,check_b,check_h],[outim,message,outgal,out])
132
  app.queue(default_concurrency_limit=5).launch()
 
17
  driver=False
18
 
19
 
20
+ def html2im():
21
 
22
  html = """<h1> An interesting title </h1> This page will be red"""
23
  css = "body {background: red;}"
 
127
  out=gr.Image()
128
  outgal=gr.Gallery()
129
  outim = gr.Image()
130
+ btn.click(html2im,None,out)
131
  #btn.click(run_script,[inp,height,width,check_b,check_h],[outim,message,outgal,out])
132
  app.queue(default_concurrency_limit=5).launch()