Commit
•
b33503b
1
Parent(s):
584be3a
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ def train(*inputs):
|
|
181 |
if(not remove_attribution_after):
|
182 |
print("Archiving model file...")
|
183 |
with tarfile.open("diffusers_model.tar", "w") as tar:
|
184 |
-
tar.add("
|
185 |
if os.path.exists("intraining.lock"): os.remove("intraining.lock")
|
186 |
trained_file = open("hastrained.success", "w")
|
187 |
trained_file.close()
|
|
|
181 |
if(not remove_attribution_after):
|
182 |
print("Archiving model file...")
|
183 |
with tarfile.open("diffusers_model.tar", "w") as tar:
|
184 |
+
tar.add("output_model", arcname=os.path.basename("output_model"))
|
185 |
if os.path.exists("intraining.lock"): os.remove("intraining.lock")
|
186 |
trained_file = open("hastrained.success", "w")
|
187 |
trained_file.close()
|