Spaces:
Sleeping
Sleeping
Update apps/intro.py
Browse files- apps/intro.py +3 -3
apps/intro.py
CHANGED
|
@@ -22,7 +22,7 @@ def app():
|
|
| 22 |
with st.container():
|
| 23 |
col1, col2 = st.columns(2)
|
| 24 |
with col1:
|
| 25 |
-
word_to_embed= st.text_input("Please enter your text here and we will embed it for you.", value="
|
| 26 |
with col2:
|
| 27 |
cat= st.selectbox('Categorie', ('1', '2', '3', '4', '5'))
|
| 28 |
|
|
@@ -32,8 +32,8 @@ def app():
|
|
| 32 |
|
| 33 |
model, umap_model = init_models()
|
| 34 |
|
| 35 |
-
|
| 36 |
-
word_to_embed_list.append(
|
| 37 |
st.session_state['embed_list'] = word_to_embed_list
|
| 38 |
cat_list .append(cat)
|
| 39 |
st.session_state['cat_list '] = cat_list
|
|
|
|
| 22 |
with st.container():
|
| 23 |
col1, col2 = st.columns(2)
|
| 24 |
with col1:
|
| 25 |
+
word_to_embed= st.text_input("Please enter your text here and we will embed it for you.", value="",)
|
| 26 |
with col2:
|
| 27 |
cat= st.selectbox('Categorie', ('1', '2', '3', '4', '5'))
|
| 28 |
|
|
|
|
| 32 |
|
| 33 |
model, umap_model = init_models()
|
| 34 |
|
| 35 |
+
phrase = "The book is about "+ word_to_embed
|
| 36 |
+
word_to_embed_list.append(phrase )
|
| 37 |
st.session_state['embed_list'] = word_to_embed_list
|
| 38 |
cat_list .append(cat)
|
| 39 |
st.session_state['cat_list '] = cat_list
|