fatmacankara commited on
Commit
754deb7
·
1 Parent(s): 4d3c48c

Update ASCARIS.py

Browse files
Files changed (1) hide show
  1. ASCARIS.py +4 -21
ASCARIS.py CHANGED
@@ -4,38 +4,21 @@ from os import path
4
  import sys
5
  import streamlit.components.v1 as components
6
  sys.path.append('code/')
7
- #sys.path.append('ASCARIS/code/')
8
  import pdb_featureVector
9
  import alphafold_featureVector
10
  import argparse
11
  from st_aggrid import AgGrid, GridOptionsBuilder, JsCode,GridUpdateMode
12
  import base64
13
- showWarningOnDirectExecution = False
14
-
15
  from huggingface_hub import hf_hub_download
16
- from huggingface_hub import utils as u
17
-
18
- from huggingface_hub.utils import hf_raise_for_status, HfHubHTTPError
19
-
20
-
21
  import streamlit as st
22
  import gzip
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
-
33
  def convert_df(df):
34
  return df.to_csv(index=False).encode('utf-8')
35
 
36
-
37
- # Check if 'key' already exists in session_state
38
- # If not, then initialize it
39
  if 'visibility' not in st.session_state:
40
  st.session_state['visibility'] = 'visible'
41
  st.session_state.disabled = False
 
4
  import sys
5
  import streamlit.components.v1 as components
6
  sys.path.append('code/')
 
7
  import pdb_featureVector
8
  import alphafold_featureVector
9
  import argparse
10
  from st_aggrid import AgGrid, GridOptionsBuilder, JsCode,GridUpdateMode
11
  import base64
 
 
12
  from huggingface_hub import hf_hub_download
 
 
 
 
 
13
  import streamlit as st
14
  import gzip
15
+
16
+ showWarningOnDirectExecution = False
17
+
 
 
 
 
 
 
 
18
  def convert_df(df):
19
  return df.to_csv(index=False).encode('utf-8')
20
 
21
+
 
 
22
  if 'visibility' not in st.session_state:
23
  st.session_state['visibility'] = 'visible'
24
  st.session_state.disabled = False