Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def main():
|
|
68 |
llm = huggingface_hub.HuggingFaceHub(repo_id="google/flan-t5-small",
|
69 |
model_kwargs={"temperature":1.0, "max_length":256})
|
70 |
docs = vector_store.similarity_search(query=query, k=1)
|
71 |
-
|
72 |
chain = load_qa_chain(llm=llm, chain_type="stuff")
|
73 |
response = chain.run(input_documents=docs, question=query)
|
74 |
#retriever=vector_store.as_retriever()
|
|
|
68 |
llm = huggingface_hub.HuggingFaceHub(repo_id="google/flan-t5-small",
|
69 |
model_kwargs={"temperature":1.0, "max_length":256})
|
70 |
docs = vector_store.similarity_search(query=query, k=1)
|
71 |
+
st.write(docs)
|
72 |
chain = load_qa_chain(llm=llm, chain_type="stuff")
|
73 |
response = chain.run(input_documents=docs, question=query)
|
74 |
#retriever=vector_store.as_retriever()
|