Spaces:
Runtime error
Runtime error
nltk
Browse files
app.py
CHANGED
@@ -93,6 +93,8 @@ def search(mode, text):
|
|
93 |
return res
|
94 |
|
95 |
if __name__ == "__main__":
|
|
|
|
|
96 |
# print("Loading model from:", model_path)
|
97 |
checkpoint = torch.load(model_path, map_location=lambda storage, loc: storage)
|
98 |
|
|
|
93 |
return res
|
94 |
|
95 |
if __name__ == "__main__":
|
96 |
+
import nltk
|
97 |
+
nltk.download('punkt')
|
98 |
# print("Loading model from:", model_path)
|
99 |
checkpoint = torch.load(model_path, map_location=lambda storage, loc: storage)
|
100 |
|