Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ else:
|
|
| 18 |
MAX_SEED = np.iinfo(np.int32).max
|
| 19 |
MAX_IMAGE_SIZE = 1024
|
| 20 |
|
| 21 |
-
def infer(prompt_part1,
|
| 22 |
prompt = f"{prompt_part1} {color} {dress-type} {design} {prompt_part5}"
|
| 23 |
|
| 24 |
if randomize_seed:
|
|
@@ -74,7 +74,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 74 |
container=False,
|
| 75 |
elem_id="prompt_part1"
|
| 76 |
)
|
| 77 |
-
gr.Markdown(f"**Prompt Part 1:** a single")
|
| 78 |
|
| 79 |
prompt_part2 = gr.Textbox(
|
| 80 |
label="color",
|
|
@@ -108,7 +107,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 108 |
container=False,
|
| 109 |
elem_id="prompt_part5"
|
| 110 |
)
|
| 111 |
-
|
| 112 |
|
| 113 |
run_button = gr.Button("Run", scale=0)
|
| 114 |
|
|
|
|
| 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:
|
|
|
|
| 74 |
container=False,
|
| 75 |
elem_id="prompt_part1"
|
| 76 |
)
|
|
|
|
| 77 |
|
| 78 |
prompt_part2 = gr.Textbox(
|
| 79 |
label="color",
|
|
|
|
| 107 |
container=False,
|
| 108 |
elem_id="prompt_part5"
|
| 109 |
)
|
| 110 |
+
|
| 111 |
|
| 112 |
run_button = gr.Button("Run", scale=0)
|
| 113 |
|