| import gradio as gr | |
| from PIL import Image | |
| def combinar(imagen_usuario, imagen_prenda): | |
| # Aqu铆 deber铆as incluir el c贸digo real para fusionar im谩genes (ej: con IA o superposici贸n) | |
| return imagen_usuario | |
| demo = gr.Interface( | |
| fn=combinar, | |
| inputs=[ | |
| gr.Image(label="Tu foto", type="pil"), | |
| gr.Image(label="Imagen de prenda", type="pil") | |
| ], | |
| outputs=gr.Image(label="Resultado") | |
| ) | |
| demo.launch() | |