Spaces:
Sleeping
Sleeping
Commit
·
df9c34e
1
Parent(s):
ecaabcc
Update ASCARIS.py
Browse files- ASCARIS.py +4 -2
ASCARIS.py
CHANGED
|
@@ -14,8 +14,10 @@ showWarningOnDirectExecution = False
|
|
| 14 |
|
| 15 |
from huggingface_hub import hf_hub_download
|
| 16 |
path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
def convert_df(df):
|
| 20 |
return df.to_csv(index=False).encode('utf-8')
|
| 21 |
|
|
|
|
| 14 |
|
| 15 |
from huggingface_hub import hf_hub_download
|
| 16 |
path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
|
| 17 |
+
import gzip
|
| 18 |
+
with gzip.open(path, 'rb') as f:
|
| 19 |
+
file_content = f.read()
|
| 20 |
+
st.write(file_content)
|
| 21 |
def convert_df(df):
|
| 22 |
return df.to_csv(index=False).encode('utf-8')
|
| 23 |
|