Spaces:
Runtime error
Runtime error
Update shakespeare.pkl
Browse files- shakespeare.pkl +0 -8
shakespeare.pkl
CHANGED
@@ -1,9 +1 @@
|
|
1 |
-
from langchain.document_loaders import BSHTMLLoader, DirectoryLoader
|
2 |
|
3 |
-
bshtml_dir_loader = DirectoryLoader('./data/', loader_cls = BSHTMLLoader)
|
4 |
-
|
5 |
-
data = bshtml_dir_loader.load()
|
6 |
-
|
7 |
-
import pickle
|
8 |
-
with open("shakespeare.pkl", "wb") as fp:
|
9 |
-
pickle.dump(data, fp)
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|