Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from diffusers import DiffusionPipeline
|
|
4 |
prompt = st.text_input('Describe the type of pokemon you would like to see:')
|
5 |
if(prompt):
|
6 |
st.spinner(text='Generating your pokemon...')
|
7 |
-
pipe = DiffusionPipeline.from_pretrained("justinpinkney/pokemon-stable-diffusion")
|
8 |
-
image = pipe(prompt).images[0]
|
9 |
-
|
|
|
|
4 |
prompt = st.text_input('Describe the type of pokemon you would like to see:')
|
5 |
if(prompt):
|
6 |
st.spinner(text='Generating your pokemon...')
|
7 |
+
pipe = DiffusionPipeline.from_pretrained("justinpinkney/pokemon-stable-diffusion")
|
8 |
+
image = pipe(prompt).images[0]
|
9 |
+
if(image):
|
10 |
+
st.image(image)
|