Spaces:
Sleeping
Sleeping
Commit ·
ccd6c71
1
Parent(s): bf7ae2c
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,8 +177,9 @@ with st.sidebar:
|
|
| 177 |
#Created a chunk of size 3431, which is longer than the specified 1000
|
| 178 |
st.session_state.texts = st.session_state.temp_texts
|
| 179 |
st.session_state.initial_embeddings=get_embeddings(st.session_state.texts)
|
|
|
|
| 180 |
st.session_state.db_embeddings = torch.FloatTensor(st.session_state.initial_embeddings)
|
| 181 |
-
print(
|
| 182 |
st.write("AI Chat now is ready.")
|
| 183 |
st.session_state.tf_switch=False
|
| 184 |
except Exception as e:
|
|
|
|
| 177 |
#Created a chunk of size 3431, which is longer than the specified 1000
|
| 178 |
st.session_state.texts = st.session_state.temp_texts
|
| 179 |
st.session_state.initial_embeddings=get_embeddings(st.session_state.texts)
|
| 180 |
+
print(initial_embeddings)
|
| 181 |
st.session_state.db_embeddings = torch.FloatTensor(st.session_state.initial_embeddings)
|
| 182 |
+
print(db_embeddings)
|
| 183 |
st.write("AI Chat now is ready.")
|
| 184 |
st.session_state.tf_switch=False
|
| 185 |
except Exception as e:
|