Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ from langchain.embeddings import OpenAIEmbeddings
|
|
5 |
from langchain.vectorstores import Chroma
|
6 |
from langchain.chains import RetrievalQA
|
7 |
|
|
|
|
|
8 |
def generate_response(uploaded_file, openai_api_key, query_text):
|
9 |
# Load document if file is uploaded
|
10 |
if uploaded_file is not None:
|
|
|
5 |
from langchain.vectorstores import Chroma
|
6 |
from langchain.chains import RetrievalQA
|
7 |
|
8 |
+
pip install streamlit langchain openai chromadb tiktoken
|
9 |
+
|
10 |
def generate_response(uploaded_file, openai_api_key, query_text):
|
11 |
# Load document if file is uploaded
|
12 |
if uploaded_file is not None:
|