Spaces:
Sleeping
Sleeping
Commit
·
8ad6053
1
Parent(s):
6f45e3f
Update app.py
Browse files
app.py
CHANGED
@@ -150,10 +150,10 @@ with st.sidebar:
|
|
150 |
texts = temp_texts
|
151 |
initial_embeddings=get_embeddings(texts)
|
152 |
db_embeddings = torch.FloatTensor(initial_embeddings)
|
153 |
-
except Exception as e:
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
|
158 |
if st.button('Get AI Response'):
|
159 |
if user_question !="" and not user_question.strip().isspace() and not user_question == "" and not user_question.strip() == "" and not user_question.isspace():
|
|
|
150 |
texts = temp_texts
|
151 |
initial_embeddings=get_embeddings(texts)
|
152 |
db_embeddings = torch.FloatTensor(initial_embeddings)
|
153 |
+
#except Exception as e:
|
154 |
+
# st.write("Unknow error.")
|
155 |
+
# print("Please enter a valide URL.")
|
156 |
+
# st.stop()
|
157 |
|
158 |
if st.button('Get AI Response'):
|
159 |
if user_question !="" and not user_question.strip().isspace() and not user_question == "" and not user_question.strip() == "" and not user_question.isspace():
|