Spaces:
Runtime error
Runtime error
enable super resolution.
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ examples = [
|
|
13 |
]
|
14 |
|
15 |
ape_gen = gr.Interface.load("spaces/ykilcher/apes")
|
16 |
-
|
17 |
style_transfer = gr.Interface.load("spaces/aravinds1811/neural-style-transfer")
|
18 |
|
19 |
def generate_ape(num_images=1, interpolate=False):
|
@@ -21,10 +21,9 @@ def generate_ape(num_images=1, interpolate=False):
|
|
21 |
|
22 |
def perform_style_transfer(content_image, style_image, is_super_resolution=False):
|
23 |
stylish_ape = style_transfer(content_image, style_image)
|
24 |
-
return stylish_ape
|
25 |
if is_super_resolution:
|
26 |
stylish_ape = super_resolution(stylish_ape)
|
27 |
-
|
28 |
|
29 |
# %%
|
30 |
with gr.Blocks() as demo:
|
|
|
13 |
]
|
14 |
|
15 |
ape_gen = gr.Interface.load("spaces/ykilcher/apes")
|
16 |
+
super_resolution = gr.Interface.load("spaces/akhaliq/SwinIR")
|
17 |
style_transfer = gr.Interface.load("spaces/aravinds1811/neural-style-transfer")
|
18 |
|
19 |
def generate_ape(num_images=1, interpolate=False):
|
|
|
21 |
|
22 |
def perform_style_transfer(content_image, style_image, is_super_resolution=False):
|
23 |
stylish_ape = style_transfer(content_image, style_image)
|
|
|
24 |
if is_super_resolution:
|
25 |
stylish_ape = super_resolution(stylish_ape)
|
26 |
+
return stylish_ape
|
27 |
|
28 |
# %%
|
29 |
with gr.Blocks() as demo:
|