Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,15 +81,15 @@ def recolor_dress(image_pil, prompt):
|
|
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=[
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
93 |
)
|
94 |
|
95 |
-
interface.launch()
|
|
|
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="Prompt", placeholder="Describe what to edit")
|
89 |
+
],
|
90 |
+
outputs=gr.Image(label="Edited Image"),
|
91 |
+
title="Image Editor",
|
92 |
+
description="Uses Hugging Face model for real image editing based on prompt."
|
93 |
)
|
94 |
|
95 |
+
interface.launch(show_error = True)
|