Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +4 -3
min_dalle/min_dalle.py
CHANGED
@@ -242,9 +242,9 @@ class MinDalle:
|
|
242 |
|
243 |
for i in range( IMAGE_TOKEN_COUNT ):
|
244 |
|
245 |
-
if(st.session_state.page != 0):
|
246 |
-
|
247 |
-
st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
|
248 |
|
249 |
torch.cuda.empty_cache()
|
250 |
|
@@ -268,6 +268,7 @@ class MinDalle:
|
|
268 |
is_seamless=is_seamless,
|
269 |
is_verbose=is_verbose
|
270 |
)
|
|
|
271 |
# displaying the memory
|
272 |
print(tracemalloc.get_traced_memory())
|
273 |
|
|
|
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 |
|
|
|
268 |
is_seamless=is_seamless,
|
269 |
is_verbose=is_verbose
|
270 |
)
|
271 |
+
|
272 |
# displaying the memory
|
273 |
print(tracemalloc.get_traced_memory())
|
274 |
|