wzkariampuzha commited on
Commit
b28ab8e
·
1 Parent(s): b424a32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -13
app.py CHANGED
@@ -64,20 +64,22 @@ def load_models():
64
 
65
  def epi_sankey(sankey_data):
66
  gathered, relevant, epidemiologic = sankey_data
 
67
  fig = go.Figure(data=[go.Sankey(
68
- node = dict(
69
- pad = 15,
70
- thickness = 20,
71
- line = dict(color = "black", width = 0.5),
72
- label = ["PubMed IDs Gathered", "Relevant Abstracts Gathered", "Irrelevant", "Epidemiologic", "Irrelevant"],
73
- color = "blue"
74
- ),
75
- #label = ["A1", "A2", "B1", "B2", "C1", "C2"]
76
- link = dict(
77
- source = [0, 0, 0, 1, 3],
78
- target = [0, 1, 2, 3, 4],
79
- value = [gathered, gathered-relevant, relevant, epidemiologic, gathered-epidemiologic]
80
- ))])
 
81
  return fig
82
 
83
  with st.spinner('Loading Epidemiology Models and Dependencies...'):
 
64
 
65
  def epi_sankey(sankey_data):
66
  gathered, relevant, epidemiologic = sankey_data
67
+
68
  fig = go.Figure(data=[go.Sankey(
69
+ node = dict(
70
+ pad = 15,
71
+ thickness = 20,
72
+ line = dict(color = "black", width = 0.5),
73
+ label = ["PubMed IDs Gathered", "Relevant Abstracts Gathered", "Irrelevant", "Epidemiologic", "Irrelevant"],
74
+ color = "blue"
75
+ ),
76
+ #label = ["A1", "A2", "B1", "B2", "C1", "C2"]
77
+ link = dict(
78
+ source = [0, 0, 0, 1, 3],
79
+ target = [0, 1, 2, 3, 4],
80
+ value = [gathered, gathered-relevant, relevant, epidemiologic, gathered-epidemiologic]
81
+ ))])
82
+
83
  return fig
84
 
85
  with st.spinner('Loading Epidemiology Models and Dependencies...'):