HuseynG commited on
Commit
e5718ef
1 Parent(s): b20b64c

resizing img display

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. img_styles.css +4 -0
app.py CHANGED
@@ -15,6 +15,7 @@ iface = gr.Interface(
15
  allow_screenshot=True,
16
  title='Random Landscape Image Generator By Huseyn Gorbani',
17
  description='This app generates random images, using DCFAN inspired WGAN-GP model. Special Thanks to Aladdin Persson and Emilien Dupont for their insightful repos on GitHub. Aladdin Persson (repo: https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/4.%20WGAN-GP) Emilien Dupont (repo: https://github.com/EmilienDupont/wgan-gp/blob/master/training.py)',
 
18
  )
19
 
20
  iface.launch()
 
15
  allow_screenshot=True,
16
  title='Random Landscape Image Generator By Huseyn Gorbani',
17
  description='This app generates random images, using DCFAN inspired WGAN-GP model. Special Thanks to Aladdin Persson and Emilien Dupont for their insightful repos on GitHub. Aladdin Persson (repo: https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/4.%20WGAN-GP) Emilien Dupont (repo: https://github.com/EmilienDupont/wgan-gp/blob/master/training.py)',
18
+ css='img_styles.css',
19
  )
20
 
21
  iface.launch()
img_styles.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .gradio-content img {
2
+ max-width: 50%;
3
+ max-height: 50%;
4
+ }