wzkariampuzha commited on
Commit
f435314
1 Parent(s): c058e52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -9,7 +9,6 @@ import streamlit as st
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)
@@ -70,14 +69,14 @@ def epi_sankey(sankey_data):
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
 
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)
 
69
  pad = 15,
70
  thickness = 20,
71
  line = dict(color = "black", width = 0.5),
72
+ label = ["PubMed IDs Gathered", "Irrelevant Abstracts","Relevant Abstracts Gathered","Epidemiologic Abstracts","Not Epidemiologic"],
73
  color = "blue"
74
  ),
75
  #label = ["A1", "A2", "B1", "B2", "C1", "C2"]
76
  link = dict(
77
+ source = [0, 0, 2, 2],
78
+ target = [2, 1, 3, 4],
79
+ value = [relevant, gathered-relevant, epidemiologic, relevant-epidemiologic]
80
  ))])
81
 
82
  return fig