LethallyHealthy commited on
Commit
b5f689f
·
verified ·
1 Parent(s): 4d00ce4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- st.image(image)
 
 
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)