Spaces:
Runtime error
Runtime error
Commit
·
c801b0d
1
Parent(s):
02727f2
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,11 +18,12 @@ def generate(seed):
|
|
| 18 |
plt.subplot(6, 6, i+1)
|
| 19 |
plt.imshow(generated_images[i, :, :, :])
|
| 20 |
plt.axis("off")
|
|
|
|
| 21 |
return fig
|
| 22 |
|
| 23 |
|
| 24 |
gr.Interface(fn=generate,
|
| 25 |
inputs=[gr.inputs.Slider(label='Seed', minimum=0, maximum=1000, default=42)],
|
| 26 |
-
outputs=gr.
|
| 27 |
title="CryptoGAN",
|
| 28 |
description="These CryptoPunks do not exist.").launch()
|
|
|
|
| 18 |
plt.subplot(6, 6, i+1)
|
| 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.Image(type="plot"),
|
| 28 |
title="CryptoGAN",
|
| 29 |
description="These CryptoPunks do not exist.").launch()
|