Spaces:
Running
Running
wzkariampuzha
commited on
Commit
·
b28ab8e
1
Parent(s):
b424a32
Update app.py
Browse files
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 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
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...'):
|