vasilisNt commited on
Commit
fc3b97a
1 Parent(s): 4974b16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -47,9 +47,10 @@ def plot_interactive(uniprot_id):
47
  " (%{z:.2f})",
48
  ])+'<extra></extra>'
49
  )
50
- fig.layout.width = 800
51
  return fig
52
 
53
  uid = st.selectbox("uniprot_id:", uids)
54
-
55
- st.plotly_chart(plot_interactive(uid), use_container_width=True)
 
 
47
  " (%{z:.2f})",
48
  ])+'<extra></extra>'
49
  )
50
+
51
  return fig
52
 
53
  uid = st.selectbox("uniprot_id:", uids)
54
+ fig = plot_interactive(uid)
55
+ fig.update_layout(width = 700, height = 700, autosize = False)
56
+ st.plotly_chart(fig, use_container_width=True)