Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,6 @@ def text_to_image(text):
|
|
8 |
# Generate an image based on the input text
|
9 |
image = pipeline(text).images[0]
|
10 |
|
11 |
-
# Save the image (you can customize this part)
|
12 |
-
image_path = "output_image.png"
|
13 |
-
image.save(image_path)
|
14 |
-
|
15 |
return image
|
16 |
|
17 |
text_input = gr.Textbox(label="Enter your text")
|
|
|
8 |
# Generate an image based on the input text
|
9 |
image = pipeline(text).images[0]
|
10 |
|
|
|
|
|
|
|
|
|
11 |
return image
|
12 |
|
13 |
text_input = gr.Textbox(label="Enter your text")
|