Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
|
4 |
+
def process_image(image):
|
5 |
+
new_image = Image.new('RGB', (image.width * 2, image.height))
|
6 |
+
new_image.paste(image, (0, 0))
|
7 |
+
new_image.paste(image, (image.width, 0))
|
8 |
+
return new_image
|
9 |
+
|
10 |
+
gr.Interface(fn=process_image, inputs="image", outputs="image").launch()
|