Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ with gr.Blocks(css=css) as demo:
|
|
235 |
image_url.submit(fn=image2image, inputs=[uploaded_image, image_url, gr.State(False)], outputs=additional_image_output)
|
236 |
|
237 |
@spaces.GPU(duration=190)
|
238 |
-
def infer2(prompt, image, seed=42, randomize_seed=False, width=1024, height=1024, strength=.5, guidance_scale=5.0, num_inference_steps=28
|
239 |
if randomize_seed:
|
240 |
seed = random.randint(0, MAX_SEED)
|
241 |
generator = torch.Generator(device=device).manual_seed(seed)
|
|
|
235 |
image_url.submit(fn=image2image, inputs=[uploaded_image, image_url, gr.State(False)], outputs=additional_image_output)
|
236 |
|
237 |
@spaces.GPU(duration=190)
|
238 |
+
def infer2(prompt, image, seed=42, randomize_seed=False, width=1024, height=1024, strength=.5, guidance_scale=5.0, num_inference_steps=28):
|
239 |
if randomize_seed:
|
240 |
seed = random.randint(0, MAX_SEED)
|
241 |
generator = torch.Generator(device=device).manual_seed(seed)
|