Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,6 @@ def create_app():
|
|
33 |
show_label=True,
|
34 |
interactive=False,
|
35 |
columns=len(thumbnails),
|
36 |
-
# rows=2,
|
37 |
height=250
|
38 |
)
|
39 |
|
@@ -43,7 +42,7 @@ def create_app():
|
|
43 |
submit_btn = gr.Button("Stylize")
|
44 |
|
45 |
with gr.Column():
|
46 |
-
result_output = gr.Image(label="Stylized Result", type="pil", height=500)
|
47 |
|
48 |
submit_btn.click(
|
49 |
fn=lambda img, style: stylize_pil_image(img, style, models),
|
@@ -66,4 +65,4 @@ for cfg in style_configs:
|
|
66 |
models[cfg.style_name] = model
|
67 |
|
68 |
app = create_app()
|
69 |
-
app.launch(
|
|
|
33 |
show_label=True,
|
34 |
interactive=False,
|
35 |
columns=len(thumbnails),
|
|
|
36 |
height=250
|
37 |
)
|
38 |
|
|
|
42 |
submit_btn = gr.Button("Stylize")
|
43 |
|
44 |
with gr.Column():
|
45 |
+
result_output = gr.Image(label="Stylized Result", type="pil", format="png", height=500)
|
46 |
|
47 |
submit_btn.click(
|
48 |
fn=lambda img, style: stylize_pil_image(img, style, models),
|
|
|
65 |
models[cfg.style_name] = model
|
66 |
|
67 |
app = create_app()
|
68 |
+
app.launch(share=True)
|