Dua Rajper commited on
Commit
4ca875b
·
verified ·
1 Parent(s): decfef7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def main():
28
  if st.button("Generate"):
29
  if not prompt:
30
  st.warning("Please enter a prompt first.")
31
- return # ✅ Fixed indentation
32
 
33
  st.write("Generating your image...")
34
  with torch.no_grad():
@@ -40,3 +40,4 @@ def main():
40
 
41
  if __name__ == "__main__":
42
  main()
 
 
28
  if st.button("Generate"):
29
  if not prompt:
30
  st.warning("Please enter a prompt first.")
31
+ return # ✅ Make sure this return is correctly indented
32
 
33
  st.write("Generating your image...")
34
  with torch.no_grad():
 
40
 
41
  if __name__ == "__main__":
42
  main()
43
+