peter2000 commited on
Commit
c91902c
1 Parent(s): 4f7df78

Update apps/intro.py

Browse files
Files changed (1) hide show
  1. apps/intro.py +20 -0
apps/intro.py CHANGED
@@ -16,6 +16,26 @@ def init_models():
16
  return model, umap_model
17
 
18
  def app():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  word_to_embed_list = st.session_state['embed_list']
20
  cat_list = st.session_state['cat_list']
21
 
 
16
  return model, umap_model
17
 
18
  def app():
19
+
20
+ with st.container():
21
+ st.markdown("<h1 style='text-align: center; \
22
+ color: black;'> Text Embedder</h1>",
23
+ unsafe_allow_html=True)
24
+ st.write(' ')
25
+ st.write(' ')
26
+
27
+ with st.expander("ℹ️ - About this app", expanded=True):
28
+
29
+ st.write(
30
+ """
31
+ Information cartography - Get your word/phrase/sentence/paragraph embedded and visualized.
32
+ The (English) sentence-transformers model "all-MiniLM-L6-v2" maps sentences & paragraphs to a 384 dimensional dense vector space This is normally used for tasks like clustering or semantic search, but in this case, we use it to place your text to a 3D map. Before plotting, the dimension needs to be reduced to three so we can actually plot it, but preserve as much information as possible. For this, we use a technology called umap.
33
+
34
+ Simply put in your text and press EMBED, your examples will add up. You can use the category for different coloring.
35
+ """)
36
+
37
+ st.markdown("")
38
+
39
  word_to_embed_list = st.session_state['embed_list']
40
  cat_list = st.session_state['cat_list']
41