Spaces:
Runtime error
Runtime error
File size: 572 Bytes
063372b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from only_gradio_server import process_images
# Create Gradio interface
iface = gr.Interface(fn=process_images,
inputs=[gr.Image(type='filepath', label='Input Image 1'),
gr.Image(type='filepath', label='Input Image 2', image_mode="RGBA"),
gr.Textbox(label='Replace Object Name')],
outputs='image',
title="Image Processing",
description="Object to Object Replacement")
# Launch Gradio interface
iface.launch() |