Spaces:
Sleeping
Sleeping
sgt444pepper
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ iface = gr.ChatInterface(fn=chatbot_interface, type="messages")
|
|
129 |
|
130 |
if __name__ == "__main__":
|
131 |
file_paths = ["Company_eng.txt", "base_eng.txt"]
|
132 |
-
documents =
|
133 |
|
134 |
indexer = Retriver(documents, tokenizer, model)
|
135 |
reranker = Reranker(reranker_model)
|
|
|
129 |
|
130 |
if __name__ == "__main__":
|
131 |
file_paths = ["Company_eng.txt", "base_eng.txt"]
|
132 |
+
documents = load_documents(file_paths)
|
133 |
|
134 |
indexer = Retriver(documents, tokenizer, model)
|
135 |
reranker = Reranker(reranker_model)
|