Li Yan commited on
Commit
28e6e70
·
1 Parent(s): bf33d70

update css to limit the output image dispaly size

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,5 +14,7 @@ def image_gen(name):
14
  images = pipeline(num_inference_steps=40).images
15
  return images[0]
16
 
17
- demo = gr.Interface(fn=image_gen, inputs=None, outputs="image")
 
 
18
  demo.launch()
 
14
  images = pipeline(num_inference_steps=40).images
15
  return images[0]
16
 
17
+ css = ".output-image, .input-image, .image-preview {height: 256px !important; width: 256px !important;}"
18
+
19
+ demo = gr.Interface(fn=image_gen, inputs=None, outputs="image", css=css)
20
  demo.launch()