Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,15 +81,15 @@ def perform_neural_transfer(content_image_input, style_image_input, super_resolu
|
|
81 |
return stylized_image
|
82 |
|
83 |
with gr.Blocks() as demo:
|
84 |
-
gr.HTML("<h1><center> 🐑 Art Generation with Neural Style Transfer </center></h1>")
|
85 |
|
86 |
with gr.Row():
|
87 |
style_reference_input_gallery = gr.Gallery(list(style_urls.values()),
|
88 |
#width = 512,
|
89 |
-
height = 768 +
|
90 |
label = "Style Image gallery (click to use)")
|
91 |
with gr.Column():
|
92 |
-
super_resolution_type = gr.Radio(["none" ,"base", "anime"], type="value", default="none", label="model used to super resolution the Image Transformed")
|
93 |
style_reference_input_image = gr.Image(
|
94 |
label = "Style Image (you can upload yourself or click from left gallery)",
|
95 |
#width = 512,
|
@@ -112,10 +112,11 @@ with gr.Blocks() as demo:
|
|
112 |
|
113 |
gr.Examples(
|
114 |
[
|
115 |
-
[style_urls["Kanagawa great wave"], style_urls["Kadishman"]],
|
116 |
-
[style_urls["Derkovits woman head"], style_urls["Kadishman"]],
|
|
|
117 |
],
|
118 |
-
inputs = [style_reference_input_image, content_image_input],
|
119 |
label = "Transform Examples"
|
120 |
)
|
121 |
|
|
|
81 |
return stylized_image
|
82 |
|
83 |
with gr.Blocks() as demo:
|
84 |
+
gr.HTML("<h1><center> 🐑 Art Generation with Neural Style Transfer Fixed by Real-ESRGAN </center></h1>")
|
85 |
|
86 |
with gr.Row():
|
87 |
style_reference_input_gallery = gr.Gallery(list(style_urls.values()),
|
88 |
#width = 512,
|
89 |
+
height = 768 + 128,
|
90 |
label = "Style Image gallery (click to use)")
|
91 |
with gr.Column():
|
92 |
+
super_resolution_type = gr.Radio(["none" ,"base", "anime"], type="value", default="none", label="choose Real-ESRGAN model type used to super resolution the Image Transformed")
|
93 |
style_reference_input_image = gr.Image(
|
94 |
label = "Style Image (you can upload yourself or click from left gallery)",
|
95 |
#width = 512,
|
|
|
112 |
|
113 |
gr.Examples(
|
114 |
[
|
115 |
+
[style_urls["Kanagawa great wave"], style_urls["Kadishman"], "none"],
|
116 |
+
[style_urls["Derkovits woman head"], style_urls["Kadishman"], "base"],
|
117 |
+
[style_urls["Kadishman"], style_urls["Kadishman"], "anime"],
|
118 |
],
|
119 |
+
inputs = [style_reference_input_image, content_image_input, super_resolution_type],
|
120 |
label = "Transform Examples"
|
121 |
)
|
122 |
|