Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,6 +144,7 @@ if st.button("Get AI Insights") and website_url:
|
|
| 144 |
print(fixed_question)
|
| 145 |
chain = load_qa_chain(ChatOpenAI(model="gpt-4o"), chain_type="stuff")
|
| 146 |
docs = docsearch.similarity_search(fixed_question)
|
|
|
|
| 147 |
response = chain.run(input_documents=docs, question=fixed_question)
|
| 148 |
|
| 149 |
st.write("**AI Insights:**", response)
|
|
|
|
| 144 |
print(fixed_question)
|
| 145 |
chain = load_qa_chain(ChatOpenAI(model="gpt-4o"), chain_type="stuff")
|
| 146 |
docs = docsearch.similarity_search(fixed_question)
|
| 147 |
+
print(docs)
|
| 148 |
response = chain.run(input_documents=docs, question=fixed_question)
|
| 149 |
|
| 150 |
st.write("**AI Insights:**", response)
|