Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,6 @@ st.write(
|
|
19 |
|
20 |
st.text_input("Type your question here", key="userquery")
|
21 |
|
22 |
-
st.write(st.session_state.userquery)
|
23 |
|
24 |
#model = SentenceTransformer("all-MiniLM-L6-v2")
|
25 |
|
@@ -53,11 +52,14 @@ numericscore = numericscore[0]
|
|
53 |
|
54 |
print(numericscore)
|
55 |
|
|
|
|
|
56 |
if numericscore > 0.45:
|
57 |
print(bestmatch)
|
58 |
print(maxscore)
|
|
|
|
|
59 |
else:
|
60 |
print("No matches")
|
61 |
|
62 |
|
63 |
-
st.write(bestmatch)
|
|
|
19 |
|
20 |
st.text_input("Type your question here", key="userquery")
|
21 |
|
|
|
22 |
|
23 |
#model = SentenceTransformer("all-MiniLM-L6-v2")
|
24 |
|
|
|
52 |
|
53 |
print(numericscore)
|
54 |
|
55 |
+
listofanswer = []
|
56 |
+
|
57 |
if numericscore > 0.45:
|
58 |
print(bestmatch)
|
59 |
print(maxscore)
|
60 |
+
listofanswer.append(bestmatch)
|
61 |
+
option = st.selectbox( 'We identified something similar. Try this?', listofanswer)
|
62 |
else:
|
63 |
print("No matches")
|
64 |
|
65 |
|
|