Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
•
e1e19d4
1
Parent(s):
507ccdc
Update app.py
Browse files
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
|
23 |
|
24 |
|
25 |
gr.Interface(fn=generate,
|
26 |
inputs=[gr.inputs.Slider(label='Seed', minimum=0, maximum=1000, default=42)],
|
27 |
-
outputs=gr.
|
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()
|