emmas96 commited on
Commit
1567f6e
·
1 Parent(s): 7a3382d

remove index from downloaded csv

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -155,7 +155,7 @@ def retrieval():
155
  mol_img = Chem.Draw.MolToImage(mol)
156
  st.image(mol_img, caption=f"{results.loc[j + 5*i, 'Prediction']:.2f}")
157
 
158
- st.download_button('Download retrieved drug compounds.', results.head(selected_k).to_csv().encode('utf-8'), file_name='retrieved_drugs.csv')
159
 
160
  elif query_embedding is not None:
161
  st.markdown('### Inference')
@@ -205,7 +205,7 @@ def retrieval():
205
  mol_img = Chem.Draw.MolToImage(mol)
206
  st.image(mol_img, caption=f"{results.loc[j + 5*i, 'Prediction']:.2f}")
207
 
208
- st.download_button('Download retrieved drug compounds.', results.head(selected_k).to_csv().encode('utf-8'), file_name='retrieved_drugs.csv')
209
 
210
  page_names_to_func = {
211
  'Retrieval': retrieval,
 
155
  mol_img = Chem.Draw.MolToImage(mol)
156
  st.image(mol_img, caption=f"{results.loc[j + 5*i, 'Prediction']:.2f}")
157
 
158
+ st.download_button('Download retrieved drug compounds.', results.head(selected_k).to_csv(index=False).encode('utf-8'), file_name='retrieved_drugs.csv')
159
 
160
  elif query_embedding is not None:
161
  st.markdown('### Inference')
 
205
  mol_img = Chem.Draw.MolToImage(mol)
206
  st.image(mol_img, caption=f"{results.loc[j + 5*i, 'Prediction']:.2f}")
207
 
208
+ st.download_button('Download retrieved drug compounds.', results.head(selected_k).to_csv(index=False).encode('utf-8'), file_name='retrieved_drugs.csv')
209
 
210
  page_names_to_func = {
211
  'Retrieval': retrieval,