Spaces:
Running
Running
abhinavsarkar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ tokenizer, model, torch_device = load_grammar_model()
|
|
31 |
# Load vocabulary for spell checking (optimized loading)
|
32 |
@st.cache_resource
|
33 |
def load_vocabulary():
|
34 |
-
file_paths = ['
|
35 |
words = []
|
36 |
for file_path in file_paths:
|
37 |
with open(file_path, 'r') as f:
|
|
|
31 |
# Load vocabulary for spell checking (optimized loading)
|
32 |
@st.cache_resource
|
33 |
def load_vocabulary():
|
34 |
+
file_paths = ['book.txt', 'alice_in_wonderland.txt', 'big.txt', 'shakespeare.txt']
|
35 |
words = []
|
36 |
for file_path in file_paths:
|
37 |
with open(file_path, 'r') as f:
|