hacpdsae2023 commited on
Commit
7a0ff5a
·
1 Parent(s): 7f7675e

Showing only first element of example embedding

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ sentence = ['This framework generates embeddings for each input sentence']
12
  embedding = model.encode(sentence)
13
 
14
  x = st.slider('Select a value')
15
- st.write(x, 'squared is', x * x, 'embedding', embedding[0])
16
 
17
 
18
  uploaded_file = st.file_uploader("Choose a file")
 
12
  embedding = model.encode(sentence)
13
 
14
  x = st.slider('Select a value')
15
+ st.write(x, 'squared is', x * x, 'embedding', embedding[0][0])
16
 
17
 
18
  uploaded_file = st.file_uploader("Choose a file")