vuu10 commited on
Commit
e07e5bf
·
1 Parent(s): 0024411

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -21
main.py CHANGED
@@ -120,34 +120,16 @@ def model_prediction(compound_feature, enz_feature, model):
120
  return prediction_vals[0][0]
121
 
122
 
123
- # loaded_model = load_modelfile('./../CNN_results/model_final.model')
124
-
125
- # KEGG_compound_read = pd.read_csv('./../CNN_data/Final_test/kegg_compound.csv', index_col = 'Compound_ID')
126
- # kegg_df = KEGG_compound_read.reset_index()
127
-
128
-
129
  def main():
130
  graph = tf.compat.v1.get_default_graph()
131
- ld_model = tf.keras.models.load_model('./../CNN_results_split_final/Final_model.model')
132
 
133
- KEGG_compound_read = pd.read_csv('./../CNN_data/Final_test/kegg_compound.csv', index_col = 'Compound_ID')
134
  kegg_df = KEGG_compound_read.reset_index()
135
 
136
 
137
- # def img_to_bytes(img_path):
138
- # img_bytes = Path(img_path).read_bytes()
139
- # encoded = base64.b64encode(img_bytes).decode()
140
- # return encoded
141
- # # st.title('dGPredictor')
142
-
143
- # header_html = "<img src='../figures/header.png'>"
144
-
145
- # st.markdown(
146
- # header_html, unsafe_allow_html=True,
147
- # )
148
-
149
 
150
- st.image('./header.png', use_column_width=True)
151
 
152
  st.subheader('Enzyme-Substrate Activity Predictor ')
153
 
 
120
  return prediction_vals[0][0]
121
 
122
 
 
 
 
 
 
 
123
  def main():
124
  graph = tf.compat.v1.get_default_graph()
125
+ ld_model = tf.keras.models.load_model('./CNN_results_split_final/Final_model.model')
126
 
127
+ KEGG_compound_read = pd.read_csv('./CNN_data/Final_test/kegg_compound.csv', index_col = 'Compound_ID')
128
  kegg_df = KEGG_compound_read.reset_index()
129
 
130
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
+ st.image('./Streamlit/header.png', use_column_width=True)
133
 
134
  st.subheader('Enzyme-Substrate Activity Predictor ')
135