RishuD7 commited on
Commit
3a652a9
1 Parent(s): 250c75f

removed dotenv

Browse files
Files changed (5) hide show
  1. README.md +1 -1
  2. app.py +1 -2
  3. ingest.py +0 -1
  4. privateGPT.py +0 -1
  5. streamlit_app.py +0 -1
README.md CHANGED
@@ -9,4 +9,4 @@ app_file: streamlit_app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1,4 +1,3 @@
1
- from dotenv import load_dotenv
2
  from langchain.chains import RetrievalQA
3
  from langchain.embeddings import HuggingFaceEmbeddings
4
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
@@ -91,7 +90,7 @@ def embed_documents(files, collection_name: Optional[str] = None):
91
 
92
  if collection_name is None:
93
  # Handle the case when the collection_name is not defined
94
- collection_name = file.filename
95
 
96
  os.system(f'python ingest.py --collection {collection_name}')
97
 
 
 
1
  from langchain.chains import RetrievalQA
2
  from langchain.embeddings import HuggingFaceEmbeddings
3
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
 
90
 
91
  if collection_name is None:
92
  # Handle the case when the collection_name is not defined
93
+ collection_name = file.name
94
 
95
  os.system(f'python ingest.py --collection {collection_name}')
96
 
ingest.py CHANGED
@@ -1,7 +1,6 @@
1
  import os
2
  import glob
3
  from typing import List
4
- from dotenv import load_dotenv
5
  import argparse
6
 
7
  from langchain.document_loaders import (
 
1
  import os
2
  import glob
3
  from typing import List
 
4
  import argparse
5
 
6
  from langchain.document_loaders import (
privateGPT.py CHANGED
@@ -1,4 +1,3 @@
1
- from dotenv import load_dotenv
2
  from langchain.chains import RetrievalQA
3
  from langchain.embeddings import HuggingFaceEmbeddings
4
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
 
 
1
  from langchain.chains import RetrievalQA
2
  from langchain.embeddings import HuggingFaceEmbeddings
3
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
streamlit_app.py CHANGED
@@ -1,4 +1,3 @@
1
- from dotenv import load_dotenv
2
  import os
3
  import streamlit as st
4
  import requests
 
 
1
  import os
2
  import streamlit as st
3
  import requests