Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -70,11 +70,11 @@ def overlay_text_on_clothing(clothing_image, text_input, style, strength=20, alp
|
|
70 |
interface = gr.Interface(
|
71 |
fn=overlay_text_on_clothing,
|
72 |
inputs=[
|
73 |
-
gr.Image(type="
|
74 |
gr.Textbox(label="Enter Text for Design"),
|
75 |
gr.Radio(["Bold", "Italic", "Graffiti", "Calligraphy"], label="Select Style", value="Bold"),
|
76 |
-
gr.Slider(10, 50, step=5,
|
77 |
-
gr.Slider(0.1, 1.0, step=0.1,
|
78 |
],
|
79 |
outputs=gr.Image(type="pil", label="Final Design"),
|
80 |
title="AI-Powered Clothing Text Overlay",
|
|
|
70 |
interface = gr.Interface(
|
71 |
fn=overlay_text_on_clothing,
|
72 |
inputs=[
|
73 |
+
gr.Image(type="filepath", label="Upload Clothing Image", interactive=True), # Changed 'binary' to 'filepath'
|
74 |
gr.Textbox(label="Enter Text for Design"),
|
75 |
gr.Radio(["Bold", "Italic", "Graffiti", "Calligraphy"], label="Select Style", value="Bold"),
|
76 |
+
gr.Slider(10, 50, step=5, value=20, label="Displacement Strength"),
|
77 |
+
gr.Slider(0.1, 1.0, step=0.1, value=0.7, label="Alpha Blending")
|
78 |
],
|
79 |
outputs=gr.Image(type="pil", label="Final Design"),
|
80 |
title="AI-Powered Clothing Text Overlay",
|