wzkariampuzha commited on
Commit
4a37eb1
1 Parent(s): c52403d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -9,6 +9,7 @@ import streamlit as st
9
  import spacy
10
  import tensorflow as tf
11
  import pickle
 
12
 
13
  ########## Title for the Web App ##########
14
  st.markdown('''<img src="https://huggingface.co/spaces/ncats/EpiPipeline4GARD/resolve/main/NCATS_logo.png" alt="National Center for Advancing Translational Sciences Logo" width=550>''',unsafe_allow_html=True)
@@ -22,11 +23,11 @@ st.markdown(
22
  """
23
  <style>
24
  [data-testid="stSidebar"][aria-expanded="true"] > div:first-child {
25
- width: 200px;
26
  }
27
  [data-testid="stSidebar"][aria-expanded="false"] > div:first-child {
28
- width: 200px;
29
- margin-left: -300px;
30
  }
31
  </style>
32
  """,
@@ -111,8 +112,8 @@ if disease_or_gard_id:
111
  mime='text/csv',
112
  )
113
  #st.dataframe(data=None, width=None, height=None)
114
- gathered, relevant, epidemiologic = sankey_data
 
115
  if st.button('Display Sankey Diagram'):
116
- fig = epi_sankey(sankey_data)
117
  st.plotly_chart(fig, use_container_width=True)
118
  # st.code(body, language="python")
 
9
  import spacy
10
  import tensorflow as tf
11
  import pickle
12
+ import plotly.graph_objects as go
13
 
14
  ########## Title for the Web App ##########
15
  st.markdown('''<img src="https://huggingface.co/spaces/ncats/EpiPipeline4GARD/resolve/main/NCATS_logo.png" alt="National Center for Advancing Translational Sciences Logo" width=550>''',unsafe_allow_html=True)
 
23
  """
24
  <style>
25
  [data-testid="stSidebar"][aria-expanded="true"] > div:first-child {
26
+ width: 250px;
27
  }
28
  [data-testid="stSidebar"][aria-expanded="false"] > div:first-child {
29
+ width: 250px;
30
+ margin-left: -350px;
31
  }
32
  </style>
33
  """,
 
112
  mime='text/csv',
113
  )
114
  #st.dataframe(data=None, width=None, height=None)
115
+ fig = epi_sankey(sankey_data)
116
+
117
  if st.button('Display Sankey Diagram'):
 
118
  st.plotly_chart(fig, use_container_width=True)
119
  # st.code(body, language="python")