Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import concurrent.futures
|
|
4 |
# import json
|
5 |
from sklearn.manifold import TSNE
|
6 |
# import umap
|
7 |
-
|
8 |
# import tensorflow
|
9 |
from gensim.models import Word2Vec
|
10 |
import pandas as pd
|
@@ -19,6 +19,8 @@ import plotly.express as px
|
|
19 |
import plotly.graph_objs as go
|
20 |
from streamlit.components.v1 import html
|
21 |
|
|
|
|
|
22 |
st.set_page_config(page_title="OncoDigger", page_icon=":microscope:", layout="wide", # centered
|
23 |
initial_sidebar_state="auto", menu_items={
|
24 |
'About': "OncoDigger is a Natural Language Processing (NLP) that harnesses Word2Vec to mine"
|
@@ -40,9 +42,9 @@ st.set_page_config(page_title="OncoDigger", page_icon=":microscope:", layout="wi
|
|
40 |
#
|
41 |
# html(analytics_code, height=0)
|
42 |
|
43 |
-
from google_analytics_component.google_analytics import google_analytics
|
44 |
-
|
45 |
-
google_analytics()
|
46 |
|
47 |
# Define the HTML and CSS styles
|
48 |
st.markdown("""
|
@@ -1190,6 +1192,8 @@ if query:
|
|
1190 |
# else:
|
1191 |
# st.error("The password you entered is incorrect.")
|
1192 |
|
|
|
|
|
1193 |
|
1194 |
|
1195 |
|
|
|
4 |
# import json
|
5 |
from sklearn.manifold import TSNE
|
6 |
# import umap
|
7 |
+
import streamlit_analytics
|
8 |
# import tensorflow
|
9 |
from gensim.models import Word2Vec
|
10 |
import pandas as pd
|
|
|
19 |
import plotly.graph_objs as go
|
20 |
from streamlit.components.v1 import html
|
21 |
|
22 |
+
streamlit_analytics.start_tracking("G-EKFSW65C2P")
|
23 |
+
|
24 |
st.set_page_config(page_title="OncoDigger", page_icon=":microscope:", layout="wide", # centered
|
25 |
initial_sidebar_state="auto", menu_items={
|
26 |
'About': "OncoDigger is a Natural Language Processing (NLP) that harnesses Word2Vec to mine"
|
|
|
42 |
#
|
43 |
# html(analytics_code, height=0)
|
44 |
|
45 |
+
# from google_analytics_component.google_analytics import google_analytics
|
46 |
+
#
|
47 |
+
# google_analytics()
|
48 |
|
49 |
# Define the HTML and CSS styles
|
50 |
st.markdown("""
|
|
|
1192 |
# else:
|
1193 |
# st.error("The password you entered is incorrect.")
|
1194 |
|
1195 |
+
streamlit_analytics.stop_tracking()
|
1196 |
+
|
1197 |
|
1198 |
|
1199 |
|