Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def infer_ip_adapter(model_repo_id, prompt, image, scale, negative_prompt, seed,
|
|
92 |
width = width,
|
93 |
height = height,
|
94 |
generator = generator
|
95 |
-
).images[0]
|
96 |
|
97 |
return image, seed
|
98 |
|
@@ -196,7 +196,7 @@ with gr.Blocks(css=css) as demo:
|
|
196 |
|
197 |
run_button.click(
|
198 |
fn=infer_t2i,
|
199 |
-
inputs = [all_model_id[model_choice], prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
200 |
outputs = [result, seed]
|
201 |
)
|
202 |
|
@@ -295,7 +295,7 @@ with gr.Blocks(css=css) as demo:
|
|
295 |
|
296 |
run_button.click(
|
297 |
fn=infer_i2i,
|
298 |
-
inputs = [all_model_id[model_choice], prompt, image_upload_input, editing_strength, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
299 |
outputs = [result, seed]
|
300 |
)
|
301 |
|
@@ -394,7 +394,7 @@ with gr.Blocks(css=css) as demo:
|
|
394 |
|
395 |
run_button.click(
|
396 |
fn=infer_ip_adapter,
|
397 |
-
inputs = [all_model_id[model_choice], prompt, image_upload_input, ip_adapter_scale, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
398 |
outputs = [result, seed]
|
399 |
)
|
400 |
|
|
|
92 |
width = width,
|
93 |
height = height,
|
94 |
generator = generator
|
95 |
+
).images[0]
|
96 |
|
97 |
return image, seed
|
98 |
|
|
|
196 |
|
197 |
run_button.click(
|
198 |
fn=infer_t2i,
|
199 |
+
inputs = [all_model_id[str(model_choice)], prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
200 |
outputs = [result, seed]
|
201 |
)
|
202 |
|
|
|
295 |
|
296 |
run_button.click(
|
297 |
fn=infer_i2i,
|
298 |
+
inputs = [all_model_id[str(model_choice)], prompt, image_upload_input, editing_strength, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
299 |
outputs = [result, seed]
|
300 |
)
|
301 |
|
|
|
394 |
|
395 |
run_button.click(
|
396 |
fn=infer_ip_adapter,
|
397 |
+
inputs = [all_model_id[str(model_choice)], prompt, image_upload_input, ip_adapter_scale, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
398 |
outputs = [result, seed]
|
399 |
)
|
400 |
|