rk147 commited on
Commit
7ecf961
·
verified ·
1 Parent(s): 5c082cb

Update app/utils/rag.py

Browse files
Files changed (1) hide show
  1. app/utils/rag.py +5 -0
app/utils/rag.py CHANGED
@@ -2,10 +2,15 @@
2
 
3
  import os
4
  import uuid
 
5
  import streamlit as st
6
  from sentence_transformers import SentenceTransformer
7
  import chromadb
8
 
 
 
 
 
9
  # Disable ChromaDB telemetry entirely to avoid posthog capture() crash
10
  os.environ["ANONYMIZED_TELEMETRY"] = "False"
11
  os.environ["CHROMA_TELEMETRY"] = "False"
 
2
 
3
  import os
4
  import uuid
5
+ import warnings
6
  import streamlit as st
7
  from sentence_transformers import SentenceTransformer
8
  import chromadb
9
 
10
+ # Suppress torch.classes warning that occurs during model initialization
11
+ warnings.filterwarnings("ignore", message=".*Tried to instantiate class '__path__._path'.*")
12
+ os.environ["TOKENIZERS_PARALLELISM"] = "false"
13
+
14
  # Disable ChromaDB telemetry entirely to avoid posthog capture() crash
15
  os.environ["ANONYMIZED_TELEMETRY"] = "False"
16
  os.environ["CHROMA_TELEMETRY"] = "False"