Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ nltk.download('punkt_tab')
|
|
| 13 |
faiss_path="ubuntu_manual.txt"
|
| 14 |
# Load the Ubuntu manual from a .txt file
|
| 15 |
try:
|
| 16 |
-
|
| 17 |
full_text = file.read()
|
| 18 |
except FileNotFoundError:
|
| 19 |
raise FileNotFoundError("The file ubuntu_manual.txt was not found.")
|
|
|
|
| 13 |
faiss_path="ubuntu_manual.txt"
|
| 14 |
# Load the Ubuntu manual from a .txt file
|
| 15 |
try:
|
| 16 |
+
with open("ubuntu_manual.txt", "r", encoding="utf-8") as file:
|
| 17 |
full_text = file.read()
|
| 18 |
except FileNotFoundError:
|
| 19 |
raise FileNotFoundError("The file ubuntu_manual.txt was not found.")
|