jfataphd commited on
Commit
5e8245c
·
1 Parent(s): b96b5eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -13,13 +13,17 @@ import urllib.request
13
  import random
14
  import plotly.express as px
15
 
 
16
 
17
  st.set_page_config(page_title="OncoDigger", page_icon=":microscope:", layout="wide", # centered
18
  initial_sidebar_state="auto",
19
  menu_items={'About': "OncoDigger is a Natural Language Processing (NLP) that harnesses Word2Vec to mine"
20
  " insight from pubmed abstracts. Created by Jimmie E. Fata, PhD, [email protected]"})
21
 
 
 
22
  analytics_code = '''
 
23
  <!-- Google tag (gtag.js) -->
24
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-EKFSW65C2P"></script>
25
  <script>
@@ -29,9 +33,11 @@ analytics_code = '''
29
 
30
  gtag('config', 'G-EKFSW65C2P');
31
  </script>
 
32
  '''
33
 
34
- st.markdown(analytics_code, unsafe_allow_html=True)
 
35
 
36
  # Define the HTML and CSS styles
37
  st.markdown("""
 
13
  import random
14
  import plotly.express as px
15
 
16
+ from streamlit.components.v1 import html
17
 
18
  st.set_page_config(page_title="OncoDigger", page_icon=":microscope:", layout="wide", # centered
19
  initial_sidebar_state="auto",
20
  menu_items={'About': "OncoDigger is a Natural Language Processing (NLP) that harnesses Word2Vec to mine"
21
  " insight from pubmed abstracts. Created by Jimmie E. Fata, PhD, [email protected]"})
22
 
23
+
24
+
25
  analytics_code = '''
26
+ <head>
27
  <!-- Google tag (gtag.js) -->
28
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-EKFSW65C2P"></script>
29
  <script>
 
33
 
34
  gtag('config', 'G-EKFSW65C2P');
35
  </script>
36
+ </head>
37
  '''
38
 
39
+ html(analytics_code, height=0)
40
+
41
 
42
  # Define the HTML and CSS styles
43
  st.markdown("""