Spaces:
Sleeping
Sleeping
import gradio as gr | |
import os | |
def echo_image(image): | |
return image | |
image_input = gr.Image(type="pil") | |
image_output = gr.Image(type="pil") | |
interface = gr.Interface(fn=echo_image, inputs=image_input, outputs=image_output) | |
interface.launch(server_port=os.getenv('GRADIO_SERVER_PORT', 7860)) | |