File size: 310 Bytes
1924dd6
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
from PIL import Image

def process_image(image):
    new_image = Image.new('RGB', (image.width * 2, image.height))
    new_image.paste(image, (0, 0))
    new_image.paste(image, (image.width, 0))
    return new_image

gr.Interface(fn=process_image, inputs="image", outputs="image").launch()