Spaces:
Running
Running
| import gradio as gr | |
| def replace_background(image, prompt): | |
| # Placeholder function – returns the same image for now | |
| return image | |
| demo = gr.Interface( | |
| fn=replace_background, | |
| inputs=[ | |
| gr.Image(type="pil", label="Upload an Image"), | |
| gr.Textbox(label="Describe New Background") | |
| ], | |
| outputs=gr.Image(type="pil", label="Modified Image"), | |
| title="AI Background Replacer" | |
| ) | |
| demo.launch() | |