Spaces:
Runtime error
Runtime error
File size: 520 Bytes
d1dfe2f 2721e7b d1dfe2f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
from super_resolution import cartoon_upsampling_8x
def greet(name):
return "Hello " + name + "!!"
def transformation(image):
large_image = cartoon_upsampling_8x(image, 'a_8x_larger_output_image.png' )
return large_image
with gr.Blocks() as demo:
image1=gr.Image()
button=gr.Button("LE BOUTON")
image2=gr.Image()
button.click(fn=transformation,inputs=image1,outputs=image2,api_name="upscale")
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch() |