Spaces:
Running
Running
AndySAnker
commited on
Commit
•
96dce15
1
Parent(s):
659e403
Update app.py
Browse files
app.py
CHANGED
@@ -115,8 +115,8 @@ def create_zip_with_txt(y_onehotenc_cat, res, y_pred_proba):
|
|
115 |
with zipfile.ZipFile(zip_file_name, 'w') as zipf:
|
116 |
# Add the .xyz files
|
117 |
for i in range(5):
|
118 |
-
file_path = "Backend/COD_ICSD_XYZs_POMs_unique99/" + str(y_onehotenc_cat.categories_[
|
119 |
-
zipf.write(file_path, arcname=str(y_onehotenc_cat.categories_[
|
120 |
|
121 |
# Create and add the txt file with model guesses
|
122 |
with zipf.open("model_guesses.txt", "w") as f:
|
|
|
115 |
with zipfile.ZipFile(zip_file_name, 'w') as zipf:
|
116 |
# Add the .xyz files
|
117 |
for i in range(5):
|
118 |
+
file_path = "Backend/COD_ICSD_XYZs_POMs_unique99/" + str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz"
|
119 |
+
zipf.write(file_path, arcname=str(y_onehotenc_cat.categories_[0][res[i]])[2:-2] + "cale.xyz")
|
120 |
|
121 |
# Create and add the txt file with model guesses
|
122 |
with zipf.open("model_guesses.txt", "w") as f:
|