Zornes12 commited on
Commit
4c77626
·
verified ·
1 Parent(s): 0eb446f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def replace_background(image, prompt):
4
+ # Placeholder function – returns the same image for now
5
+ return image
6
+
7
+ demo = gr.Interface(
8
+ fn=replace_background,
9
+ inputs=[
10
+ gr.Image(type="pil", label="Upload an Image"),
11
+ gr.Textbox(label="Describe New Background")
12
+ ],
13
+ outputs=gr.Image(type="pil", label="Modified Image"),
14
+ title="AI Background Replacer"
15
+ )
16
+
17
+ demo.launch()