PrakhAI commited on
Commit
39de372
·
1 Parent(s): e9c34d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,6 +41,6 @@ def sample_latent(key):
41
 
42
  if st.button('Generate Digit'):
43
  latents = sample_latent(jax.random.PRNGKey(int(1_000_000 * time.time())))
44
- g_out = Generator().apply({'params': g_state['params'], 'batch_stats': g_state['batch_stats']}, latents, training=False)
45
  img = ((np.array(g_out)+1)*255./2.).astype(np.uint8)[0]
46
  st.image(Image.fromarray(np.repeat(img, repeats=3, axis=2)))
 
41
 
42
  if st.button('Generate Digit'):
43
  latents = sample_latent(jax.random.PRNGKey(int(1_000_000 * time.time())))
44
+ g_out = generator.apply({'params': g_state['params'], 'batch_stats': g_state['batch_stats']}, latents, training=False)
45
  img = ((np.array(g_out)+1)*255./2.).astype(np.uint8)[0]
46
  st.image(Image.fromarray(np.repeat(img, repeats=3, axis=2)))