Spaces:
Sleeping
Sleeping
Commit
·
ef2460e
1
Parent(s):
056a4d7
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -258,13 +258,12 @@ def pdb(input_set, mode, impute):
|
|
| 258 |
st.write('here1')
|
| 259 |
# Save the PDB file to a local file
|
| 260 |
st.write(Path(path_to_output_files / search/'.pdb'))
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
st.write(f"PDB file {search}.pdb downloaded successfully.")
|
| 268 |
|
| 269 |
|
| 270 |
from huggingface_hub import HfApi
|
|
@@ -274,7 +273,7 @@ def pdb(input_set, mode, impute):
|
|
| 274 |
path_in_repo="out_files/pdb/pdb_structures/",
|
| 275 |
repo_id="HUBioDataLab/ASCARIS",
|
| 276 |
repo_type="space")
|
| 277 |
-
|
| 278 |
else:
|
| 279 |
st.write('Here2')
|
| 280 |
st.write(f"Failed to retrieve PDB file for {search}.")
|
|
|
|
| 258 |
st.write('here1')
|
| 259 |
# Save the PDB file to a local file
|
| 260 |
st.write(Path(path_to_output_files / search/'.pdb'))
|
| 261 |
+
#try:
|
| 262 |
+
# with open(Path(path_to_output_files / search/'.pdb'), "wb") as f:
|
| 263 |
+
# st.write('WRITING TO FILE')
|
| 264 |
+
#except:
|
| 265 |
+
# st.write('ERROR')
|
| 266 |
+
|
|
|
|
| 267 |
|
| 268 |
|
| 269 |
from huggingface_hub import HfApi
|
|
|
|
| 273 |
path_in_repo="out_files/pdb/pdb_structures/",
|
| 274 |
repo_id="HUBioDataLab/ASCARIS",
|
| 275 |
repo_type="space")
|
| 276 |
+
st.write(f"PDB file {search}.pdb downloaded successfully.")
|
| 277 |
else:
|
| 278 |
st.write('Here2')
|
| 279 |
st.write(f"Failed to retrieve PDB file for {search}.")
|