myimageupscaler / app.py
Kev09's picture
Update app.py
2721e7b
raw
history blame
520 Bytes
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()