Update app.py
Browse files
app.py
CHANGED
@@ -8,11 +8,11 @@ import time
|
|
8 |
|
9 |
repo = "artificialguybr/TshirtDesignRedmond-V2"
|
10 |
|
11 |
-
def infer(color_prompt, dress_type_prompt, design_prompt
|
12 |
# Improved prompt for higher accuracy
|
13 |
prompt = (
|
14 |
f"A high-quality digital image of a {color_prompt} {dress_type_prompt}, "
|
15 |
-
f"featuring a {design_prompt} printed in sharp detail printedon the {
|
16 |
f"hanging on the plain wall."
|
17 |
f"The fabric has realistic texture,"
|
18 |
f"smooth folds, and accurate lighting. The design is perfectly aligned, with natural shadows "
|
@@ -62,12 +62,11 @@ iface = gr.Interface(
|
|
62 |
gr.Textbox(lines=1, placeholder="Color Prompt"),
|
63 |
gr.Textbox(lines=1, placeholder="Dress Type Prompt"),
|
64 |
gr.Textbox(lines=2, placeholder="Design Prompt"),
|
65 |
-
gr.Textbox(lines=1, placeholder="Text (Optional)"),
|
66 |
],
|
67 |
outputs="image",
|
68 |
title="Make your Brand",
|
69 |
description="Generation of clothes",
|
70 |
-
examples=[["Red", "T-shirt", "Simple design"
|
71 |
)
|
72 |
|
73 |
print("Launching Gradio interface...")
|
|
|
8 |
|
9 |
repo = "artificialguybr/TshirtDesignRedmond-V2"
|
10 |
|
11 |
+
def infer(color_prompt, dress_type_prompt, design_prompt):
|
12 |
# Improved prompt for higher accuracy
|
13 |
prompt = (
|
14 |
f"A high-quality digital image of a {color_prompt} {dress_type_prompt}, "
|
15 |
+
f"featuring a {design_prompt} printed in sharp detail printedon the {dress_type_prompt},"
|
16 |
f"hanging on the plain wall."
|
17 |
f"The fabric has realistic texture,"
|
18 |
f"smooth folds, and accurate lighting. The design is perfectly aligned, with natural shadows "
|
|
|
62 |
gr.Textbox(lines=1, placeholder="Color Prompt"),
|
63 |
gr.Textbox(lines=1, placeholder="Dress Type Prompt"),
|
64 |
gr.Textbox(lines=2, placeholder="Design Prompt"),
|
|
|
65 |
],
|
66 |
outputs="image",
|
67 |
title="Make your Brand",
|
68 |
description="Generation of clothes",
|
69 |
+
examples=[["Red", "T-shirt", "Simple design"]]
|
70 |
)
|
71 |
|
72 |
print("Launching Gradio interface...")
|