Spaces:
Sleeping
Sleeping
Commit
·
1d9dfe8
1
Parent(s):
13a42f6
Update ASCARIS.py
Browse files- ASCARIS.py +6 -2
ASCARIS.py
CHANGED
@@ -13,17 +13,21 @@ import base64
|
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
15 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
16 |
import streamlit as st
|
17 |
import gzip
|
18 |
try:
|
19 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
20 |
st.write('1')
|
21 |
-
except
|
22 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", 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/AlphafoldStructures3", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
26 |
st.write('1')
|
|
|
27 |
def convert_df(df):
|
28 |
return df.to_csv(index=False).encode('utf-8')
|
29 |
|
|
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
15 |
from huggingface_hub import hf_hub_download
|
16 |
+
from huggingface_hub.utils import get_session, hf_raise_for_status, HfHubHTTPError
|
17 |
+
|
18 |
+
|
19 |
import streamlit as st
|
20 |
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 HfHubHTTPError:
|
25 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
26 |
st.write('1')
|
27 |
+
except HfHubHTTPError:
|
28 |
x = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-Q9BSV6-F1-model_v4.pdb.gz",repo_type = 'dataset')
|
29 |
st.write('1')
|
30 |
+
|
31 |
def convert_df(df):
|
32 |
return df.to_csv(index=False).encode('utf-8')
|
33 |
|