basharatwali commited on
Commit
3363dcd
·
1 Parent(s): e0b4393

Add application and model

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- fn=generate,
59
- inputs=gr.Slider(minimum=1, maximum=9, step=1, value=1, label="Number of Images"),
60
- outputs=gr.Gallery(label="Generated Artwork").style(grid=[3], height="auto"),
61
- title="Art Generation with GAN",
62
- description="Generate artwork using a trained GAN model."
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