Spaces:
Paused
Paused
Commit
·
ead746a
1
Parent(s):
3181a3e
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def proper_query(query):
|
|
24 |
def ingest_docs():
|
25 |
"""Get documents from the input folder"""
|
26 |
#loader = ReadTheDocsLoader("input/reglamento-avianca.txt")
|
27 |
-
with open('
|
28 |
text = file.read()
|
29 |
document_split = text.split('\"\n\"\n')
|
30 |
docs = []
|
|
|
24 |
def ingest_docs():
|
25 |
"""Get documents from the input folder"""
|
26 |
#loader = ReadTheDocsLoader("input/reglamento-avianca.txt")
|
27 |
+
with open('reglamento-avianca.txt', 'r', encoding="utf-8") as file:
|
28 |
text = file.read()
|
29 |
document_split = text.split('\"\n\"\n')
|
30 |
docs = []
|