Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +3 -3
min_dalle/min_dalle.py
CHANGED
@@ -242,9 +242,9 @@ class MinDalle:
|
|
242 |
|
243 |
for i in range( IMAGE_TOKEN_COUNT ):
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
|
249 |
torch.cuda.empty_cache()
|
250 |
|
|
|
242 |
|
243 |
for i in range( IMAGE_TOKEN_COUNT ):
|
244 |
|
245 |
+
if(st.session_state.page != 0):
|
246 |
+
break
|
247 |
+
st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
|
248 |
|
249 |
torch.cuda.empty_cache()
|
250 |
|