Spaces:
Sleeping
Sleeping
Commit
•
4b1230e
1
Parent(s):
4caceff
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def create_zip_with_txt(y_onehotenc_cat, res, y_pred_proba):
|
|
150 |
with zipfile.ZipFile(zip_file_name, 'w') as zipf:
|
151 |
# Add the .xyz files
|
152 |
for i in range(5):
|
153 |
-
name = str(y_onehotenc_cat.categories_[0][res[
|
154 |
if name.startswith("icsd"):
|
155 |
file_path = "Backend/COD_ICSD_XYZs_POMs_unique99/" + str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz"
|
156 |
zipf.write(file_path, arcname=str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz")
|
|
|
150 |
with zipfile.ZipFile(zip_file_name, 'w') as zipf:
|
151 |
# Add the .xyz files
|
152 |
for i in range(5):
|
153 |
+
name = str(y_onehotenc_cat.categories_[0][res[i]])[2:-2]
|
154 |
if name.startswith("icsd"):
|
155 |
file_path = "Backend/COD_ICSD_XYZs_POMs_unique99/" + str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz"
|
156 |
zipf.write(file_path, arcname=str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz")
|