Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,5 +12,6 @@ def generate_image(prompt):
|
|
12 |
image = np.asarray(image)
|
13 |
return image
|
14 |
|
15 |
-
iface = gr.Interface(generate_image, gr.inputs.Textbox(label="Enter a prompt"), gr.outputs.Image(type='numpy'))
|
|
|
16 |
iface.launch()
|
|
|
12 |
image = np.asarray(image)
|
13 |
return image
|
14 |
|
15 |
+
iface = gr.Interface(generate_image, gr.inputs.Textbox(label="Enter a prompt"), gr.outputs.Image(type='numpy'), batch_size=1)
|
16 |
+
|
17 |
iface.launch()
|