Spaces:
Sleeping
Sleeping
Commit
·
3363dcd
1
Parent(s):
e0b4393
Add application and model
Browse files
app.py
CHANGED
@@ -54,13 +54,13 @@ def inference_interface(latent_dim=latent_dim, device=device):
|
|
54 |
upscaled_images = [img.resize((256, 256), resample=Image.LANCZOS) for img in images]
|
55 |
return upscaled_images
|
56 |
|
57 |
-
demo = gr.Interface(
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
return demo
|
65 |
|
66 |
# The key part: launch the Gradio interface when app.py is run
|
|
|
54 |
upscaled_images = [img.resize((256, 256), resample=Image.LANCZOS) for img in images]
|
55 |
return upscaled_images
|
56 |
|
57 |
+
demo = gr.Interface(fn=generate,
|
58 |
+
inputs=gr.Slider(minimum=1, maximum=9, step=1, value=1, label="Number of Images"),
|
59 |
+
outputs=gr.Gallery(label="Generated Artwork", columns=3, height="auto"),
|
60 |
+
title="Art Generation with GAN",
|
61 |
+
description="Generate artwork using a trained GAN model."
|
62 |
+
)
|
63 |
+
|
64 |
return demo
|
65 |
|
66 |
# The key part: launch the Gradio interface when app.py is run
|