Spaces:
Sleeping
Sleeping
minor bug fixes
Browse files- backend/pinecone_utilis.py +1 -1
- start.sh +1 -1
backend/pinecone_utilis.py
CHANGED
@@ -20,7 +20,7 @@ text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=20
|
|
20 |
embeddings = OpenAIEmbeddings(model="text-embedding-3-large", dimensions=1024, api_key=OPENAI_API_KEY)
|
21 |
|
22 |
# Pinecone vector store
|
23 |
-
pc = Pinecone(api_key=
|
24 |
|
25 |
def load_and_split_document(file_path: str) -> List[Document]:
|
26 |
if file_path.endswith('.pdf'):
|
|
|
20 |
embeddings = OpenAIEmbeddings(model="text-embedding-3-large", dimensions=1024, api_key=OPENAI_API_KEY)
|
21 |
|
22 |
# Pinecone vector store
|
23 |
+
pc = Pinecone(api_key=PINECONE_API_KEY)
|
24 |
|
25 |
def load_and_split_document(file_path: str) -> List[Document]:
|
26 |
if file_path.endswith('.pdf'):
|
start.sh
CHANGED
@@ -4,5 +4,5 @@
|
|
4 |
cd /app && uvicorn backend.main:app --host 0.0.0.0 --port 8000 &
|
5 |
|
6 |
|
7 |
-
cd /app && streamlit run frontend/app.py --server.port=7860 --server.address=0.0.0.0
|
8 |
|
|
|
4 |
cd /app && uvicorn backend.main:app --host 0.0.0.0 --port 8000 &
|
5 |
|
6 |
|
7 |
+
cd /app && streamlit run frontend/app.py --server.port=7860 --server.address=0.0.0.0 --browser.gatherUsageStats=false
|
8 |
|