Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,13 @@ def greet(name):
|
|
5 |
return "Hello " + name + "!!"
|
6 |
|
7 |
def transformation(image):
|
|
|
8 |
large_image = cartoon_upsampling_8x(image, 'a_8x_larger_output_image.png' )
|
9 |
return large_image
|
10 |
|
11 |
with gr.Blocks() as demo:
|
12 |
image1=gr.Image()
|
|
|
13 |
button=gr.Button("LE BOUTON")
|
14 |
image2=gr.Image()
|
15 |
button.click(fn=transformation,inputs=image1,outputs=image2,api_name="upscale")
|
|
|
5 |
return "Hello " + name + "!!"
|
6 |
|
7 |
def transformation(image):
|
8 |
+
print(image)
|
9 |
large_image = cartoon_upsampling_8x(image, 'a_8x_larger_output_image.png' )
|
10 |
return large_image
|
11 |
|
12 |
with gr.Blocks() as demo:
|
13 |
image1=gr.Image()
|
14 |
+
|
15 |
button=gr.Button("LE BOUTON")
|
16 |
image2=gr.Image()
|
17 |
button.click(fn=transformation,inputs=image1,outputs=image2,api_name="upscale")
|