mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-28 09:59:24 +01:00
Model readme file write flag
This commit is contained in:
parent
aa59575df3
commit
b40fb3a422
@ -96,7 +96,7 @@ def make_model_folders():
|
||||
help_file_name = f'Place your {model_type} model files here.txt'
|
||||
help_file_contents = f'Supported extensions: {" or ".join(MODEL_EXTENSIONS.get(model_type))}'
|
||||
|
||||
with open(os.path.join(model_dir_path, help_file_name)) as f:
|
||||
with open(os.path.join(model_dir_path, help_file_name), 'w', encoding='utf-8') as f:
|
||||
f.write(help_file_contents)
|
||||
|
||||
def is_malicious_model(file_path):
|
||||
|
Loading…
Reference in New Issue
Block a user