myimageupscaler / app.py
Kev09's picture
Create app.py
d1dfe2f
raw
history blame
518 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,input=image1,output=image2,api_name="upscale")
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()