Skip to content

Commit

Permalink
Update webui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 22, 2023
1 parent ef8405b commit ad48c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui.py
Expand Up @@ -742,7 +742,8 @@ def train():
shutil.copy(f2,"/opt/ml/model/")
f3=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.safetensors')
if os.path.exists(f3):
shutil.copy(f3,"/opt/ml/model/") except Exception as e:
shutil.copy(f3,"/opt/ml/model/")
except Exception as e:
traceback.print_exc()
print(e)
opts.data = default_options
Expand Down

0 comments on commit ad48c63

Please sign in to comment.