kingav commited on
Commit
4cdbe3b
·
verified ·
1 Parent(s): 0e84cfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -168,7 +168,7 @@ if option == "Auto-Regressor":
168
 
169
  # %%
170
  # from IPython.display import Image, display
171
- from tqdm import tqdm_notebook
172
 
173
 
174
  # Create an empty array of pixels.
@@ -188,7 +188,7 @@ if option == "Auto-Regressor":
188
 
189
 
190
  # Iterate over the pixels because generation has to be done sequentially pixel by pixel.
191
- for row in range(rows):
192
  for col in range(cols):
193
  for channel in range(channels):
194
  time.sleep(0.01)
@@ -200,10 +200,11 @@ if option == "Auto-Regressor":
200
  pixels[:, row, col, channel] = tensorflow.math.ceil(
201
  probs - tensorflow.random.uniform(probs.shape)
202
  )
203
- if row<rows/2:
204
- my_bar.progress((rows+1)*2)
205
- else:
206
- my_bar.progress(row+51)
 
207
 
208
  my_bar.progress(100)
209
  time.sleep(1)
 
168
 
169
  # %%
170
  # from IPython.display import Image, display
171
+ from tqdm import tqdm
172
 
173
 
174
  # Create an empty array of pixels.
 
188
 
189
 
190
  # Iterate over the pixels because generation has to be done sequentially pixel by pixel.
191
+ for row in tqdm(range(rows)):
192
  for col in range(cols):
193
  for channel in range(channels):
194
  time.sleep(0.01)
 
200
  pixels[:, row, col, channel] = tensorflow.math.ceil(
201
  probs - tensorflow.random.uniform(probs.shape)
202
  )
203
+ my_bar.progress(row*3.125)
204
+ # if row<rows/2:
205
+ # my_bar.progress((rows+1)*2)
206
+ # else:
207
+ # my_bar.progress(row+51)
208
 
209
  my_bar.progress(100)
210
  time.sleep(1)