aahmed10202 commited on
Commit
26b4d63
·
verified ·
1 Parent(s): f88ba06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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.")