Chris4K commited on
Commit
53dc461
1 Parent(s): 4027725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -224,13 +224,13 @@ def get_response(message, history):
224
  #vs = get_vectorstore_from_url(user_url, all_domain)
225
  vs = get_vectorstore_from_url("https://www.bofrost.de/shop/fertige-gerichte_5507/auflaeufe_5509/hack-wirsing-auflauf.html?position=1&clicked=")
226
  print("------ here 22 " )
227
- chat_history =[]
228
  retriever_chain = get_context_retriever_chain(vs)
229
  conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
230
 
231
  response = conversation_rag_chain.invoke({
232
- "chat_history": chat_history,
233
- "input": user_input
234
  })
235
  print(response)
236
  return response[-1]['generation']['content']
 
224
  #vs = get_vectorstore_from_url(user_url, all_domain)
225
  vs = get_vectorstore_from_url("https://www.bofrost.de/shop/fertige-gerichte_5507/auflaeufe_5509/hack-wirsing-auflauf.html?position=1&clicked=")
226
  print("------ here 22 " )
227
+ history =[]
228
  retriever_chain = get_context_retriever_chain(vs)
229
  conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
230
 
231
  response = conversation_rag_chain.invoke({
232
+ "chat_history": history,
233
+ "input": message
234
  })
235
  print(response)
236
  return response[-1]['generation']['content']