vasilisNt commited on
Commit
39a9e82
1 Parent(s): f575805

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -51,7 +51,8 @@ def plot_interactive(uniprot_id):
51
 
52
  return fig
53
 
54
- uid = st.selectbox("uniprot_id:", df)
 
55
 
56
  fig = plot_interactive(uid)
57
  fig.update_layout(width = 800, height = 600, autosize = False)
 
51
 
52
  return fig
53
 
54
+ selection = st.selectbox("uniprot_id:", df)
55
+ uid=df[df.txt==selection].index.values[0]
56
 
57
  fig = plot_interactive(uid)
58
  fig.update_layout(width = 800, height = 600, autosize = False)