Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from langchain.schema import (
|
|
19 |
from langchain_core.output_parsers import StrOutputParser
|
20 |
from langchain_core.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
21 |
from langchain_community.llms import HuggingFaceEndpoint
|
22 |
-
from auditqa.process_chunks import load_chunks
|
23 |
from langchain_community.chat_models.huggingface import ChatHuggingFace
|
24 |
from qdrant_client.http import models as rest
|
25 |
#from qdrant_client import QdrantClient
|
@@ -37,6 +37,8 @@ scheduler = CommitScheduler(
|
|
37 |
folder_path=JSON_DATASET_DIR,
|
38 |
path_in_repo="audit_chatbot",
|
39 |
)
|
|
|
|
|
40 |
#installed_packages = pkg_resources.working_set
|
41 |
#package_list_ = ""
|
42 |
#for package in installed_packages:
|
|
|
19 |
from langchain_core.output_parsers import StrOutputParser
|
20 |
from langchain_core.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
21 |
from langchain_community.llms import HuggingFaceEndpoint
|
22 |
+
from auditqa.process_chunks import load_chunks, get_config
|
23 |
from langchain_community.chat_models.huggingface import ChatHuggingFace
|
24 |
from qdrant_client.http import models as rest
|
25 |
#from qdrant_client import QdrantClient
|
|
|
37 |
folder_path=JSON_DATASET_DIR,
|
38 |
path_in_repo="audit_chatbot",
|
39 |
)
|
40 |
+
|
41 |
+
model_config = get_config("model_params.cfg")
|
42 |
#installed_packages = pkg_resources.working_set
|
43 |
#package_list_ = ""
|
44 |
#for package in installed_packages:
|