Spaces:
Runtime error
Runtime error
Commit
Β·
2278ab0
1
Parent(s):
8a3cc0d
update
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ def resize(w_val,l_val,img):
|
|
16 |
|
17 |
|
18 |
def infer(prompt, guide, steps, width, height):
|
19 |
-
|
20 |
-
image = images[0]
|
21 |
return image
|
22 |
|
23 |
gr.Interface(fn=infer, inputs=
|
|
|
16 |
|
17 |
|
18 |
def infer(prompt, guide, steps, width, height):
|
19 |
+
output = pipe_text2img(prompt, guidance_scale=guide, num_inference_steps=steps, width=width, height=height)
|
20 |
+
image = images.images[0]
|
21 |
return image
|
22 |
|
23 |
gr.Interface(fn=infer, inputs=
|