Spaces:
Runtime error
Runtime error
Commit
·
0c55ff9
1
Parent(s):
3ec7f4c
Update app.py
Browse files
app.py
CHANGED
@@ -229,7 +229,7 @@ def generate_image(prompt):
|
|
229 |
iface = gr.Interface(
|
230 |
fn=generate_image,
|
231 |
inputs=gr.inputs.Textbox(label="Enter prompt"),
|
232 |
-
outputs=gr.outputs.Image(label="Generated Image"),
|
233 |
title="KVIImager 2.0 - Image Generator",
|
234 |
description="Generate images based on a prompt.",
|
235 |
examples=[
|
|
|
229 |
iface = gr.Interface(
|
230 |
fn=generate_image,
|
231 |
inputs=gr.inputs.Textbox(label="Enter prompt"),
|
232 |
+
outputs=gr.outputs.Image(label="Generated Image", type="pil"), # Change type to "pil"
|
233 |
title="KVIImager 2.0 - Image Generator",
|
234 |
description="Generate images based on a prompt.",
|
235 |
examples=[
|