israelweiss commited on
Commit
1318a4b
1 Parent(s): 0e87483

handling images' final size in display

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -89,6 +89,13 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
89
  align-items: center;
90
  justify-content: center;
91
  }
 
 
 
 
 
 
 
92
  #prompt-container{margin-top:-18px;}
93
  #prompt-container .form{border-top-left-radius: 0;border-top-right-radius: 0}
94
  #image_upload{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px}
 
89
  align-items: center;
90
  justify-content: center;
91
  }
92
+ #output-img img, #image_upload img {
93
+ object-fit: contain;
94
+ width: 100%;
95
+ height: auto;
96
+ max-width: 512px; /* Set maximum display size */
97
+ max-height: 512px;
98
+ }
99
  #prompt-container{margin-top:-18px;}
100
  #prompt-container .form{border-top-left-radius: 0;border-top-right-radius: 0}
101
  #image_upload{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px}