Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ driver_type = 'chromedriver'
|
|
| 17 |
driver=False
|
| 18 |
|
| 19 |
|
| 20 |
-
def
|
| 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(
|
| 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()
|