Spaces:
Runtime error
Runtime error
lmattingly13
commited on
Commit
·
5bed8cd
1
Parent(s):
822d597
cant run locally, not enough ram. semaphore leaked
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def infer(prompts, image):
|
|
| 54 |
image=processed_image,
|
| 55 |
params=p_params,
|
| 56 |
prng_seed=rng,
|
| 57 |
-
num_inference_steps=
|
| 58 |
jit=True,
|
| 59 |
).images
|
| 60 |
|
|
@@ -62,7 +62,7 @@ def infer(prompts, image):
|
|
| 62 |
return output_images
|
| 63 |
|
| 64 |
|
| 65 |
-
gr.Interface(fn = infer, inputs = ["text", "image"], outputs = "
|
| 66 |
title = title, description = description, theme='gradio/soft',
|
| 67 |
examples=[["a simpsons cartoon character", "simpsons_human_1.jpg"]]
|
| 68 |
).launch()
|
|
|
|
| 54 |
image=processed_image,
|
| 55 |
params=p_params,
|
| 56 |
prng_seed=rng,
|
| 57 |
+
num_inference_steps=5,
|
| 58 |
jit=True,
|
| 59 |
).images
|
| 60 |
|
|
|
|
| 62 |
return output_images
|
| 63 |
|
| 64 |
|
| 65 |
+
gr.Interface(fn = infer, inputs = ["text", "image"], outputs = "gallery",
|
| 66 |
title = title, description = description, theme='gradio/soft',
|
| 67 |
examples=[["a simpsons cartoon character", "simpsons_human_1.jpg"]]
|
| 68 |
).launch()
|