Spaces:
Runtime error
Runtime error
update layout
Browse files
app.py
CHANGED
@@ -22,13 +22,13 @@ def infer(image):
|
|
22 |
|
23 |
|
24 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
25 |
with gr.Row():
|
26 |
-
title= gr.Markdown("""
|
27 |
-
# Gradio Demo for [DCT-Net: Domain-Calibrated Translation for Portrait Stylization](https://github.com/menyifang/DCT-Net), SIGGRAPH 2022 (TOG); Multi-style cartoonization
|
28 |
-
"""
|
29 |
-
)
|
30 |
image = gr.Image(label='Input', type='file')
|
31 |
result = gr.Image(label='Output')
|
32 |
-
|
33 |
run_button.click(fn=infer, inputs=image, outputs=result)
|
34 |
demo.launch()
|
|
|
22 |
|
23 |
|
24 |
with gr.Blocks() as demo:
|
25 |
+
title= gr.Markdown("""
|
26 |
+
# Gradio Demo for [DCT-Net: Domain-Calibrated Translation for Portrait Stylization](https://github.com/menyifang/DCT-Net), SIGGRAPH 2022 (TOG); Multi-style cartoonization
|
27 |
+
"""
|
28 |
+
)
|
29 |
with gr.Row():
|
|
|
|
|
|
|
|
|
30 |
image = gr.Image(label='Input', type='file')
|
31 |
result = gr.Image(label='Output')
|
32 |
+
run_button = gr.Button('Run')
|
33 |
run_button.click(fn=infer, inputs=image, outputs=result)
|
34 |
demo.launch()
|