wzkariampuzha commited on
Commit
04706b7
1 Parent(s): 2ad3bb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ def convert_df(df):
80
  #@st.cache(allow_output_mutation=True)
81
  @st.experimental_singleton()
82
  def epi_sankey(sankey_data, disease_or_gard_id):
83
- gathered, relevant, epidemiologic = sankey_data
84
 
85
  fig = go.Figure(data=[go.Sankey(
86
  node = dict(
@@ -94,7 +94,7 @@ def epi_sankey(sankey_data, disease_or_gard_id):
94
  link = dict(
95
  source = [0, 0, 2, 2],
96
  target = [2, 1, 3, 4],
97
- value = [relevant, gathered-relevant, epidemiologic, relevant-epidemiologic]
98
  ))])
99
  fig.update_layout(
100
  hoverinfo ='none',
 
80
  #@st.cache(allow_output_mutation=True)
81
  @st.experimental_singleton()
82
  def epi_sankey(sankey_data, disease_or_gard_id):
83
+ found, relevant, epidemiologic = sankey_data
84
 
85
  fig = go.Figure(data=[go.Sankey(
86
  node = dict(
 
94
  link = dict(
95
  source = [0, 0, 2, 2],
96
  target = [2, 1, 3, 4],
97
+ value = [relevant, found-relevant, epidemiologic, relevant-epidemiologic]
98
  ))])
99
  fig.update_layout(
100
  hoverinfo ='none',