Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ class Journal:
|
|
67 |
def __repr__(self):
|
68 |
return f"Journal(name='{self.name}', bytes='{self.bytes}')"
|
69 |
|
70 |
-
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-
|
71 |
|
72 |
textex_chain = create_extraction_chain(textex_schema, llm)
|
73 |
tablex_chain = create_extraction_chain(tablex_schema, llm)
|
@@ -196,7 +196,7 @@ if uploaded_files:
|
|
196 |
embeddings = OpenAIEmbeddings()
|
197 |
|
198 |
db = Chroma.from_documents(docs, embeddings)
|
199 |
-
llm_table = ChatOpenAI(model_name="gpt-3.5-turbo-
|
200 |
qa_chain = RetrievalQA.from_chain_type(llm_table, retriever=db.as_retriever())
|
201 |
|
202 |
# List of questions
|
|
|
67 |
def __repr__(self):
|
68 |
return f"Journal(name='{self.name}', bytes='{self.bytes}')"
|
69 |
|
70 |
+
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-1106")
|
71 |
|
72 |
textex_chain = create_extraction_chain(textex_schema, llm)
|
73 |
tablex_chain = create_extraction_chain(tablex_schema, llm)
|
|
|
196 |
embeddings = OpenAIEmbeddings()
|
197 |
|
198 |
db = Chroma.from_documents(docs, embeddings)
|
199 |
+
llm_table = ChatOpenAI(model_name="gpt-3.5-turbo-1106", temperature=0)
|
200 |
qa_chain = RetrievalQA.from_chain_type(llm_table, retriever=db.as_retriever())
|
201 |
|
202 |
# List of questions
|