Update app.py
Browse files
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 =
|
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)))
|