ProfessorLeVesseur commited on
Commit
c1e1c48
1 Parent(s): f372ab5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -41,10 +41,12 @@ def generate_images(prompt): #def generate_images(image_description, num_images)
41
 
42
  prompt = st.text_area("Enter a description for the image you want to generate")
43
 
 
44
  #create a button
45
  if st.button("Generate Images"):
46
- generate_image=generate_images(prompt) #generate_image=generate_images(prompt, num_of_images)
47
- st.image(generate_image)
 
48
 
49
 
50
 
 
41
 
42
  prompt = st.text_area("Enter a description for the image you want to generate")
43
 
44
+
45
  #create a button
46
  if st.button("Generate Images"):
47
+ with st.spinner("Analyzing the image ..."):
48
+ generate_image=generate_images(prompt) #generate_image=generate_images(prompt, num_of_images)
49
+ st.image(generate_image)
50
 
51
 
52