Spaces:
Running
Running
import gradio as gr | |
from utils import encoder, decoder | |
source_img = gr.Image(source="upload", type="filepath", label="init_img | 512*512 px") | |
encoded_img = gr.Image() | |
def greet(name): | |
return "Hello " + name + "!!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface = gr.Interface(fn=encoder, inputs=[source_img, | |
gr.Slider(label='noise', minimum = 0, maximum = 1, step = .05, value = .95)], | |
outputs=encoded_img) | |
iface.launch(share=True) |