Spaces:
Sleeping
Sleeping
Commit ·
d012b33
1
Parent(s): ccd6c71
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,14 +177,14 @@ 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 |
-
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:
|
| 186 |
st.write("Unknow error.")
|
| 187 |
-
print("Please enter a
|
| 188 |
st.stop()
|
| 189 |
|
| 190 |
#user_question = st.text_input("Enter your query here and AI-Chat with website:")
|
|
|
|
| 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(st.session_state.initial_embeddings)
|
| 181 |
st.session_state.db_embeddings = torch.FloatTensor(st.session_state.initial_embeddings)
|
| 182 |
+
print(st.session_state.db_embeddings)
|
| 183 |
st.write("AI Chat now is ready.")
|
| 184 |
st.session_state.tf_switch=False
|
| 185 |
except Exception as e:
|
| 186 |
st.write("Unknow error.")
|
| 187 |
+
print("Please enter a valid URL.")
|
| 188 |
st.stop()
|
| 189 |
|
| 190 |
#user_question = st.text_input("Enter your query here and AI-Chat with website:")
|