File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,11 @@ function restart_reload(){
214
214
215
215
function login ( username ) {
216
216
var user = gradioApp ( ) . querySelector ( '#tabs' ) . querySelectorAll ( 'button' ) [ 5 ] ;
217
+ var setting = gradioApp ( ) . querySelector ( '#tabs' ) . querySelectorAll ( 'button' ) [ 6 ] ;
217
218
218
219
if ( username == 'admin' ) {
219
220
user . style . display = 'block'
221
+ setting . style . display = 'none'
220
222
user . click ( )
221
223
}
222
224
else
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def webui():
234
234
api_endpoint = os .environ ['api_endpoint' ]
235
235
endpoint_name = os .environ ['endpoint_name' ]
236
236
for file in os .listdir (sd_models_dir ):
237
- if os .path .isfile (os .path .join (sd_models_dir , file )) and (file .endswith ('.ckpt' ) or file .endswith ('.safesentors ' )):
237
+ if os .path .isfile (os .path .join (sd_models_dir , file )) and (file .endswith ('.ckpt' ) or file .endswith ('.safetensors ' )):
238
238
hash = modules .sd_models .model_hash (os .path .join (sd_models_dir , file ))
239
239
item = {}
240
240
item ['model_name' ] = file
@@ -263,7 +263,7 @@ def webui():
263
263
}
264
264
for file in os .listdir (cn_models_dir ):
265
265
if os .path .isfile (os .path .join (cn_models_dir , file )) and \
266
- (file .endswith ('pt' ) or file .endswith ('.pth' ) or file .endswith ('.ckpt' ) or file .endswith ('.safetensors' )):
266
+ (file .endswith ('. pt' ) or file .endswith ('.pth' ) or file .endswith ('.ckpt' ) or file .endswith ('.safetensors' )):
267
267
hash = modules .sd_models .model_hash (os .path .join (cn_models_dir , file ))
268
268
item = {}
269
269
item ['model_name' ] = file
You can’t perform that action at this time.
0 commit comments