Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,11 @@ def generate(prompt, steps):
|
|
| 24 |
return image
|
| 25 |
|
| 26 |
output_image = gr.Image(type="pil")
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
demo.launch()
|
|
|
|
| 24 |
return image
|
| 25 |
|
| 26 |
output_image = gr.Image(type="pil")
|
| 27 |
+
inputs=[
|
| 28 |
+
gr.inputs.Textbox(label="Prompt (What you want in the image)", default="Cinematic portrait of a handsome cat with a suit and sunglasses"),
|
| 29 |
+
gr.inputs.Slider(minimum=1, maximum=10, step=0, default=1, label="Number of Images(coming soon <3)")
|
| 30 |
+
]
|
| 31 |
+
demo = gr.Interface(fn=generate, inputs=inputs, outputs=output_image)
|
| 32 |
|
| 33 |
|
| 34 |
demo.launch()
|