Spaces:
Build error
Build error
Commit
·
9e7c0c1
1
Parent(s):
8fea69e
Update app.py
Browse files
app.py
CHANGED
@@ -22,5 +22,6 @@ def greet(name):
|
|
22 |
image_pil.save("test.png")
|
23 |
return "Hello " + prompt + "!!"
|
24 |
|
25 |
-
|
|
|
26 |
iface.launch()
|
|
|
22 |
image_pil.save("test.png")
|
23 |
return "Hello " + prompt + "!!"
|
24 |
|
25 |
+
image = gr.outputs.Image(type="pil", label="Your result")
|
26 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs=[image,gr.outputs.Carousel(label="Individual images",components=["image"]),gr.outputs.Textbox(label="Error")])
|
27 |
iface.launch()
|