Spaces:
Runtime error
Runtime error
arjunanand13
commited on
Commit
•
e57e119
1
Parent(s):
4a33762
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ generate_text = transformers.pipeline(
|
|
111 |
|
112 |
llm = HuggingFacePipeline(pipeline=generate_text)
|
113 |
|
114 |
-
loader = DirectoryLoader('
|
115 |
documents = loader.load()
|
116 |
print('len of documents are',len(documents))
|
117 |
|
|
|
111 |
|
112 |
llm = HuggingFacePipeline(pipeline=generate_text)
|
113 |
|
114 |
+
loader = DirectoryLoader('data2/text/', loader_cls=TextLoader)
|
115 |
documents = loader.load()
|
116 |
print('len of documents are',len(documents))
|
117 |
|