Spaces:
Running
Running
Commit
·
cac930d
1
Parent(s):
96fc37b
Update ASCARIS.py
Browse files- ASCARIS.py +4 -2
ASCARIS.py
CHANGED
@@ -13,6 +13,8 @@ import base64
|
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
15 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
16 |
from huggingface_hub.utils import hf_raise_for_status, HfHubHTTPError
|
17 |
|
18 |
|
@@ -21,10 +23,10 @@ import gzip
|
|
21 |
try:
|
22 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
23 |
st.write('1')
|
24 |
-
except
|
25 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
26 |
st.write('2')
|
27 |
-
except
|
28 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
29 |
st.write('3')
|
30 |
|
|
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
15 |
from huggingface_hub import hf_hub_download
|
16 |
+
from huggingface_hub import utilsas u
|
17 |
+
|
18 |
from huggingface_hub.utils import hf_raise_for_status, HfHubHTTPError
|
19 |
|
20 |
|
|
|
23 |
try:
|
24 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
25 |
st.write('1')
|
26 |
+
except u.EntryNotFoundError:
|
27 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
28 |
st.write('2')
|
29 |
+
except u.EntryNotFoundError:
|
30 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
31 |
st.write('3')
|
32 |
|