gaur3009 commited on
Commit
a0ee70f
·
verified ·
1 Parent(s): 4d88ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -81,16 +81,15 @@ def recolor_dress(image_pil, prompt):
81
  def interface_fn(image, prompt):
82
  return recolor_dress(image, prompt)
83
 
 
 
 
 
 
84
  interface = gr.Interface(
85
  fn=interface_fn,
86
- inputs=[
87
- gr.Image(label="Upload Image", type="pil"),
88
- gr.Textbox(label="Describe Dress Color Change", placeholder="e.g. Make the dress sky blue")
89
- ],
90
- outputs=gr.Image(label="Recolored Dress Output", type = "pil"),
91
- title="Natural Dress Recoloring with Design Preservation (No GPU)",
92
- description="Upload a fashion photo and use prompts like “Make the dress blue” or “Change to red silk”. This CPU-based app changes the color of dresses while preserving textures, embroidery, and shadows.",
93
- allow_flagging="never"
94
  )
95
 
96
  interface.launch()
 
81
  def interface_fn(image, prompt):
82
  return recolor_dress(image, prompt)
83
 
84
+ image_input = gr.Image(label="Upload Image", type="pil")
85
+ prompt_input = gr.Textbox(label="Describe Dress Color Change")
86
+
87
+ output_image = gr.Image(label="Recolored Dress Output")
88
+
89
  interface = gr.Interface(
90
  fn=interface_fn,
91
+ inputs=[image_input, prompt_input],
92
+ outputs=output_image,
 
 
 
 
 
 
93
  )
94
 
95
  interface.launch()