Spaces:
Running
Running
FridayMaster
commited on
Commit
•
25ba997
1
Parent(s):
0fa0b75
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,13 @@ import numpy as np
|
|
4 |
import openai
|
5 |
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("ubuntu_manual.txt", "r", encoding="utf-8") as file:
|
|
|
4 |
import openai
|
5 |
from sentence_transformers import SentenceTransformer
|
6 |
from nltk.tokenize import sent_tokenize
|
7 |
+
import nltk
|
8 |
+
|
9 |
+
# Download the required NLTK data
|
10 |
+
nltk.download('punkt')
|
11 |
+
nltk.download('punkt_tab')
|
12 |
+
|
13 |
+
|
14 |
|
15 |
# Load the Ubuntu manual from a .txt file
|
16 |
with open("ubuntu_manual.txt", "r", encoding="utf-8") as file:
|