Spaces:
Sleeping
Sleeping
FridayMaster
commited on
Commit
•
73118ee
1
Parent(s):
efb08df
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from sentence_transformers import SentenceTransformer
|
|
6 |
from nltk.tokenize import sent_tokenize
|
7 |
|
8 |
# Load the Ubuntu manual from a .txt file
|
9 |
-
with open("
|
10 |
full_text = file.read()
|
11 |
|
12 |
# Function to chunk the text into smaller pieces
|
|
|
6 |
from nltk.tokenize import sent_tokenize
|
7 |
|
8 |
# Load the Ubuntu manual from a .txt file
|
9 |
+
with open("ubuntu_manual.txt", "r", encoding="utf-8") as file:
|
10 |
full_text = file.read()
|
11 |
|
12 |
# Function to chunk the text into smaller pieces
|