Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,8 @@ def embedding(chunk,query):
|
|
| 96 |
db = Chroma.from_documents(chunk,embeddings)
|
| 97 |
doc = db.similarity_search(query)
|
| 98 |
print(doc)
|
| 99 |
-
|
|
|
|
| 100 |
print(response)
|
| 101 |
return response
|
| 102 |
#st.write("Reply: ", response["output_text"])
|
|
|
|
| 96 |
db = Chroma.from_documents(chunk,embeddings)
|
| 97 |
doc = db.similarity_search(query)
|
| 98 |
print(doc)
|
| 99 |
+
chain = get_conversational_chain()
|
| 100 |
+
response = chain.invoke(query)
|
| 101 |
print(response)
|
| 102 |
return response
|
| 103 |
#st.write("Reply: ", response["output_text"])
|