Spaces:
Sleeping
Sleeping
secret fix
Browse files- fast_app.py +1 -2
- requirements.txt +0 -2
fast_app.py
CHANGED
@@ -15,7 +15,6 @@ from langchain.chains import RetrievalQA
|
|
15 |
from langchain.llms import OpenAI
|
16 |
from langchain import PromptTemplate
|
17 |
from langchain.embeddings import OpenAIEmbeddings, HuggingFaceEmbeddings
|
18 |
-
import chainlit as cl
|
19 |
|
20 |
from ingest import Ingest
|
21 |
|
@@ -26,7 +25,7 @@ from ingest import Ingest
|
|
26 |
# if huggingface_token is None:
|
27 |
# raise ValueError("Hugging Face token is not set in environment variables.")
|
28 |
|
29 |
-
openai_api_key = os.getenv("
|
30 |
if openai_api_key is None:
|
31 |
raise ValueError("OAI token is not set in environment variables.")
|
32 |
|
|
|
15 |
from langchain.llms import OpenAI
|
16 |
from langchain import PromptTemplate
|
17 |
from langchain.embeddings import OpenAIEmbeddings, HuggingFaceEmbeddings
|
|
|
18 |
|
19 |
from ingest import Ingest
|
20 |
|
|
|
25 |
# if huggingface_token is None:
|
26 |
# raise ValueError("Hugging Face token is not set in environment variables.")
|
27 |
|
28 |
+
openai_api_key = os.getenv("OPENAI_API_KEY")
|
29 |
if openai_api_key is None:
|
30 |
raise ValueError("OAI token is not set in environment variables.")
|
31 |
|
requirements.txt
CHANGED
@@ -13,8 +13,6 @@ sentence_transformers
|
|
13 |
chromadb
|
14 |
pytesseract
|
15 |
fitz
|
16 |
-
#libpff-python
|
17 |
openai
|
18 |
tiktoken
|
19 |
frontend
|
20 |
-
chainlit
|
|
|
13 |
chromadb
|
14 |
pytesseract
|
15 |
fitz
|
|
|
16 |
openai
|
17 |
tiktoken
|
18 |
frontend
|
|