osanseviero commited on
Commit
e1e19d4
1 Parent(s): 507ccdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,11 +19,11 @@ def generate(seed):
19
  plt.imshow(generated_images[i, :, :, :])
20
  plt.axis("off")
21
  plt.savefig('foo.png')
22
- return fig
23
 
24
 
25
  gr.Interface(fn=generate,
26
  inputs=[gr.inputs.Slider(label='Seed', minimum=0, maximum=1000, default=42)],
27
- outputs=gr.Plot(label="Plot"),
28
  title="CryptoGAN",
29
  description="These CryptoPunks do not exist.").launch()
 
19
  plt.imshow(generated_images[i, :, :, :])
20
  plt.axis("off")
21
  plt.savefig('foo.png')
22
+ return "foo.png"
23
 
24
 
25
  gr.Interface(fn=generate,
26
  inputs=[gr.inputs.Slider(label='Seed', minimum=0, maximum=1000, default=42)],
27
+ outputs=gr.Image(),
28
  title="CryptoGAN",
29
  description="These CryptoPunks do not exist.").launch()