Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ else:
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
MAX_IMAGE_SIZE = 1024
|
20 |
|
21 |
-
def infer(prompt_part1, color,
|
22 |
-
prompt = f"{prompt_part1} {color} {
|
23 |
|
24 |
if randomize_seed:
|
25 |
seed = random.randint(0, MAX_SEED)
|
@@ -84,10 +84,10 @@ with gr.Blocks(css=css) as demo:
|
|
84 |
)
|
85 |
|
86 |
prompt_part3 = gr.Textbox(
|
87 |
-
label="
|
88 |
show_label=False,
|
89 |
max_lines=1,
|
90 |
-
placeholder="
|
91 |
container=False,
|
92 |
)
|
93 |
|
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
MAX_IMAGE_SIZE = 1024
|
20 |
|
21 |
+
def infer(prompt_part1, color, dress_type, design, prompt_part5, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
22 |
+
prompt = f"{prompt_part1} {color} {dress_type} {design} {prompt_part5}"
|
23 |
|
24 |
if randomize_seed:
|
25 |
seed = random.randint(0, MAX_SEED)
|
|
|
84 |
)
|
85 |
|
86 |
prompt_part3 = gr.Textbox(
|
87 |
+
label="dress_type",
|
88 |
show_label=False,
|
89 |
max_lines=1,
|
90 |
+
placeholder="dress_type (e.g., t-shirt, sweatshirt, shirt, hoodie)",
|
91 |
container=False,
|
92 |
)
|
93 |
|