Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
03a8244
1
Parent(s):
6eba631
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
60 |
MAX_IMAGE_SIZE = 1024
|
61 |
|
62 |
@spaces.GPU
|
63 |
-
def infer(prompt, ip_adapter_image, negative_prompt="", seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=50,
|
64 |
if randomize_seed:
|
65 |
seed = random.randint(0, MAX_SEED)
|
66 |
|
@@ -182,7 +182,7 @@ with gr.Blocks(css=css) as demo:
|
|
182 |
gr.on(
|
183 |
triggers=[run_button.click, prompt.submit],
|
184 |
fn=infer,
|
185 |
-
inputs=[prompt, ip_adapter_image, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps
|
186 |
outputs=[result, seed]
|
187 |
)
|
188 |
|
|
|
60 |
MAX_IMAGE_SIZE = 1024
|
61 |
|
62 |
@spaces.GPU
|
63 |
+
def infer(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="", seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=50, progress=gr.Progress(track_tqdm=True)):
|
64 |
if randomize_seed:
|
65 |
seed = random.randint(0, MAX_SEED)
|
66 |
|
|
|
182 |
gr.on(
|
183 |
triggers=[run_button.click, prompt.submit],
|
184 |
fn=infer,
|
185 |
+
inputs=[prompt, ip_adapter_image, ip_adapter_scale, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
186 |
outputs=[result, seed]
|
187 |
)
|
188 |
|