Update app.py
Browse files
app.py
CHANGED
@@ -81,10 +81,10 @@ def process_images(image_a, image_b, top_left_x, top_left_y, bottom_right_x, bot
|
|
81 |
# Gradio UI components
|
82 |
image_input_a = gr.Image(label="Upload Clothing Image", type="pil")
|
83 |
image_input_b = gr.Image(label="Upload Design Image", type="pil")
|
84 |
-
top_left_x = gr.Slider(minimum=0, maximum=1000, label="Top-left X Coordinate",
|
85 |
-
top_left_y = gr.Slider(minimum=0, maximum=1000, label="Top-left Y Coordinate",
|
86 |
-
bottom_right_x = gr.Slider(minimum=0, maximum=1000, label="Bottom-right X Coordinate",
|
87 |
-
bottom_right_y = gr.Slider(minimum=0, maximum=1000, label="Bottom-right Y Coordinate",
|
88 |
|
89 |
# Define the Gradio interface
|
90 |
iface = gr.Interface(
|
|
|
81 |
# Gradio UI components
|
82 |
image_input_a = gr.Image(label="Upload Clothing Image", type="pil")
|
83 |
image_input_b = gr.Image(label="Upload Design Image", type="pil")
|
84 |
+
top_left_x = gr.Slider(minimum=0, maximum=1000, label="Top-left X Coordinate", value=50)
|
85 |
+
top_left_y = gr.Slider(minimum=0, maximum=1000, label="Top-left Y Coordinate", value=100)
|
86 |
+
bottom_right_x = gr.Slider(minimum=0, maximum=1000, label="Bottom-right X Coordinate", value=300)
|
87 |
+
bottom_right_y = gr.Slider(minimum=0, maximum=1000, label="Bottom-right Y Coordinate", value=400)
|
88 |
|
89 |
# Define the Gradio interface
|
90 |
iface = gr.Interface(
|