apsys commited on
Commit
47c2908
·
1 Parent(s): 75bf717
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def compute():
17
  my_bar = st.progress(0, text='Currently in progress')
18
 
19
  for idx in api.train(iters=10000):
20
- my_bar.progress(idx[0]/10000, text=str(idx[1]))
 
21
 
22
  samples = np.array(api.model.sample(
23
  torch.tensor(api.scaled).float()).detach())
 
17
  my_bar = st.progress(0, text='Currently in progress')
18
 
19
  for idx in api.train(iters=10000):
20
+ st.write('Loss:',idx[1])
21
+ my_bar.progress(idx[0]/10000)
22
 
23
  samples = np.array(api.model.sample(
24
  torch.tensor(api.scaled).float()).detach())