Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,4 +21,9 @@ if st.button("Generate Meme", key="generate", help="Click to generate a meme fro
|
|
| 21 |
if input_text:
|
| 22 |
modified_prompt = "MEME of an Image of " + input_text
|
| 23 |
# Generate the image from the modified prompt
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
if input_text:
|
| 22 |
modified_prompt = "MEME of an Image of " + input_text
|
| 23 |
# Generate the image from the modified prompt
|
| 24 |
+
image = pipe(modified_prompt).images[0]
|
| 25 |
+
|
| 26 |
+
# Display the generated image in the Streamlit app
|
| 27 |
+
st.image(image, caption=f"Meme: {input_text}", use_column_width=True)
|
| 28 |
+
else:
|
| 29 |
+
st.warning("Please enter a description to generate a meme.")
|