Spaces:
Runtime error
Runtime error
Dua Rajper commited on
Update app.py
Browse files
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 # ✅
|
| 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 |
+
|