Spaces:
Running
Running
| import gradio as gr | |
| from utils import encoder, decoder | |
| source_img = gr.Image(source="upload", type="filepath", label="init_img") | |
| encoded_img = gr.Image() | |
| iface = gr.Interface(fn=encoder, inputs=[source_img, | |
| gr.Slider(label='noise', minimum = 0.5, maximum = 1, step = .005, value = .95)], | |
| outputs=encoded_img) | |
| iface.launch() |