Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,9 +29,10 @@ class CompanyKnowledgeBase:
|
|
29 |
for entry in self.dataset:
|
30 |
for question in entry['questions']:
|
31 |
self.question_to_answer[question] = entry['answer']
|
32 |
-
print(self.question_to_answer[question]
|
33 |
except Exception as e:
|
34 |
st.error(f"Error loading knowledge base: {e}")
|
|
|
35 |
self.dataset = None
|
36 |
self.embeddings = None
|
37 |
self.index = None
|
|
|
29 |
for entry in self.dataset:
|
30 |
for question in entry['questions']:
|
31 |
self.question_to_answer[question] = entry['answer']
|
32 |
+
print(self.question_to_answer[question])
|
33 |
except Exception as e:
|
34 |
st.error(f"Error loading knowledge base: {e}")
|
35 |
+
print(f"Error loading knowledge base: {e}")
|
36 |
self.dataset = None
|
37 |
self.embeddings = None
|
38 |
self.index = None
|