Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,10 +54,10 @@ description = "Gradio Demo for Artistic Neural Style Transfer. To use it, simply
|
|
54 |
article = "</br><p style='text-align: center'><a href='https://github.com/0xsynapse' target='_blank'>GitHub</a></p> "
|
55 |
|
56 |
|
57 |
-
content_input = gr.
|
58 |
-
style_input = gr.
|
59 |
-
style_slider = gr.
|
60 |
-
content_slider = gr.
|
61 |
# style_checkbox = gr.Checkbox(value=False,label="Tune Style(experimental)")
|
62 |
|
63 |
|
@@ -73,12 +73,11 @@ interface = gr.Interface(fn=style_transfer,
|
|
73 |
content_slider,
|
74 |
# style_checkbox
|
75 |
],
|
76 |
-
outputs=gr.
|
77 |
title=title,
|
78 |
description=description,
|
79 |
article=article,
|
80 |
examples=examples,
|
81 |
-
enable_queue=True
|
82 |
)
|
83 |
|
84 |
|
|
|
54 |
article = "</br><p style='text-align: center'><a href='https://github.com/0xsynapse' target='_blank'>GitHub</a></p> "
|
55 |
|
56 |
|
57 |
+
content_input = gr.Image(label="Upload Your Image ",)
|
58 |
+
style_input = gr.Image( label="Upload Style Image ",)
|
59 |
+
style_slider = gr.Slider(0,2,label="Adjust Style Density" , value=1,)
|
60 |
+
content_slider = gr.Slider(1,5,label="Content Sharpness" , value=1,)
|
61 |
# style_checkbox = gr.Checkbox(value=False,label="Tune Style(experimental)")
|
62 |
|
63 |
|
|
|
73 |
content_slider,
|
74 |
# style_checkbox
|
75 |
],
|
76 |
+
outputs=gr.Image(type="pil"),
|
77 |
title=title,
|
78 |
description=description,
|
79 |
article=article,
|
80 |
examples=examples,
|
|
|
81 |
)
|
82 |
|
83 |
|