rahulved
commited on
Commit
•
c49f38d
1
Parent(s):
88a10eb
Fixed app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ def gen_image(text_input):
|
|
26 |
|
27 |
demo = gr.Interface(
|
28 |
fn=gen_image,
|
29 |
-
inputs=gr.
|
30 |
-
outputs=gr.
|
31 |
title="Text to Image Generator",
|
32 |
description="Enter text to generate an image using a custom PyTorch model."
|
33 |
)
|
|
|
26 |
|
27 |
demo = gr.Interface(
|
28 |
fn=gen_image,
|
29 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter your text here..."),
|
30 |
+
outputs=gr.Image(type="pil"),
|
31 |
title="Text to Image Generator",
|
32 |
description="Enter text to generate an image using a custom PyTorch model."
|
33 |
)
|