emmas96 commited on
Commit
4c77fbb
·
1 Parent(s): 04a4e43

center app

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,7 +21,7 @@ data_path = os.path.join(base_path, 'data')
21
  checkpoint_path = os.path.join(base_path, 'checkpoints/lpo/cv2_test_fold6_1402/model_updated.t7')
22
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
23
 
24
- st.set_page_config(layout="wide")
25
 
26
  st.title('HyperDTI: Robust Task-Conditioned Modeling of Drug-Target Interactions\n')
27
  st.markdown('')
@@ -51,7 +51,7 @@ def about_page():
51
  """
52
  )
53
 
54
- st.image('figures/hyper-dti.png', caption='Overview of HyperPCM architecture.')
55
 
56
 
57
  def retrieval():
@@ -78,7 +78,7 @@ def retrieval():
78
 
79
  with col2:
80
  selected_encoder = st.selectbox(
81
- 'Select target encoder',('SeqVec')
82
  )
83
  if sequence:
84
  st.image('figures/protein_encoder_done.png')
@@ -114,7 +114,7 @@ def retrieval():
114
 
115
  with col4:
116
  selected_encoder = st.selectbox(
117
- 'Select drug encoder',('CDDD')
118
  )
119
  st.image('figures/molecule_encoder_done.png')
120
  st.success('Encoding complete.')
 
21
  checkpoint_path = os.path.join(base_path, 'checkpoints/lpo/cv2_test_fold6_1402/model_updated.t7')
22
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
23
 
24
+ st.set_page_config(layout="centered")
25
 
26
  st.title('HyperDTI: Robust Task-Conditioned Modeling of Drug-Target Interactions\n')
27
  st.markdown('')
 
51
  """
52
  )
53
 
54
+ st.image('figures/hyper-dti.gif', caption='Overview of HyperPCM architecture.')
55
 
56
 
57
  def retrieval():
 
78
 
79
  with col2:
80
  selected_encoder = st.selectbox(
81
+ 'Select target encoder',(['SeqVec'])
82
  )
83
  if sequence:
84
  st.image('figures/protein_encoder_done.png')
 
114
 
115
  with col4:
116
  selected_encoder = st.selectbox(
117
+ 'Select drug encoder',(['CDDD'])
118
  )
119
  st.image('figures/molecule_encoder_done.png')
120
  st.success('Encoding complete.')