Spaces:
Sleeping
Sleeping
Commit
·
581cd9f
1
Parent(s):
7211aaa
correcting error - embedding input sentence, not sentence
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ sentence = ['This framework generates embeddings for each input sentence']
|
|
12 |
|
13 |
|
14 |
#Sentences are encoded by calling model.encode()
|
15 |
-
|
16 |
|
17 |
x = st.slider('Select a value')
|
18 |
-
embedding = model.encode(
|
19 |
#st.write(x, 'squared is', x * x, 'embedding', embedding[0][0])
|
20 |
st.write('The embedding of', input_sentence, 'at position',x,'is',embedding[0][int(x)])
|
21 |
|
|
|
12 |
|
13 |
|
14 |
#Sentences are encoded by calling model.encode()
|
15 |
+
embedding = model.encode(input_sentence)
|
16 |
|
17 |
x = st.slider('Select a value')
|
18 |
+
#embedding = model.encode(input_sentence)
|
19 |
#st.write(x, 'squared is', x * x, 'embedding', embedding[0][0])
|
20 |
st.write('The embedding of', input_sentence, 'at position',x,'is',embedding[0][int(x)])
|
21 |
|