Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def query_pdf(file, user_query, openai_api_key):
|
|
56 |
vector_store = FAISS.from_documents(documents, embeddings)
|
57 |
|
58 |
# Create a conversational chain that allows us to query the document
|
59 |
-
llm = ChatOpenAI(model="gpt-
|
60 |
conversational_chain = ConversationalChain(
|
61 |
llm=llm,
|
62 |
vectorstore=vector_store,
|
|
|
56 |
vector_store = FAISS.from_documents(documents, embeddings)
|
57 |
|
58 |
# Create a conversational chain that allows us to query the document
|
59 |
+
llm = ChatOpenAI(model="gpt-4o") # Using GPT-4 as the LLM
|
60 |
conversational_chain = ConversationalChain(
|
61 |
llm=llm,
|
62 |
vectorstore=vector_store,
|