multimodalart HF staff commited on
Commit
0feb48e
1 Parent(s): 12b0cbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -162,7 +162,7 @@ def train(*inputs):
162
  convert("output_model", "model.ckpt")
163
  shutil.rmtree('instance_images')
164
  shutil.make_archive("diffusers_model", 'zip', "output_model")
165
- shutil.rmtree("output_model")
166
  torch.cuda.empty_cache()
167
  return [gr.update(visible=True, value=["diffusers_model.zip", "model.ckpt"]), gr.update(visible=True), gr.update(visible=True)]
168
 
 
162
  convert("output_model", "model.ckpt")
163
  shutil.rmtree('instance_images')
164
  shutil.make_archive("diffusers_model", 'zip', "output_model")
165
+ #shutil.rmtree("output_model")
166
  torch.cuda.empty_cache()
167
  return [gr.update(visible=True, value=["diffusers_model.zip", "model.ckpt"]), gr.update(visible=True), gr.update(visible=True)]
168