Omnibus commited on
Commit
05550f1
·
verified ·
1 Parent(s): b5933ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,8 +21,8 @@ def html2im(html,css=None):
21
 
22
  html = html
23
  #css = css
24
- hti.screenshot(html_str=html, save_as='red_page.png')
25
- #hti.screenshot(html_str=html, css_str=css, save_as='red_page.png')
26
  return 'red_page.png'
27
 
28
  def get_concat_h_cut(in1, in2):
@@ -129,6 +129,6 @@ with gr.Blocks() as app:
129
  out=gr.Image()
130
  outgal=gr.Gallery()
131
  outim = gr.Image()
132
- btn.click(html2im,[inp,css],out)
133
  #btn.click(run_script,[inp,height,width,check_b,check_h],[outim,message,outgal,out])
134
  app.queue(default_concurrency_limit=5).launch()
 
21
 
22
  html = html
23
  #css = css
24
+ #hti.screenshot(html_str=html, save_as='red_page.png')
25
+ hti.screenshot(html_str=html, css_str=css, save_as='red_page.png')
26
  return 'red_page.png'
27
 
28
  def get_concat_h_cut(in1, in2):
 
129
  out=gr.Image()
130
  outgal=gr.Gallery()
131
  outim = gr.Image()
132
+ btn.click(html2im,[inp,css_inp],out)
133
  #btn.click(run_script,[inp,height,width,check_b,check_h],[outim,message,outgal,out])
134
  app.queue(default_concurrency_limit=5).launch()