Rehman1603 commited on
Commit
b49cd2d
·
verified ·
1 Parent(s): fe89983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,8 +106,8 @@ Question: {query}
106
  Generated_chat = LLMChain(llm=llama3, prompt=prompt)
107
  response = Generated_chat.invoke({'retrieved_documents': retrieved_documents, 'query': query})
108
 
109
- # Append the query and the response to history as a tuple
110
- history.append((query, response['text']))
111
  return response['text'], history
112
 
113
  def gradio_app():
 
106
  Generated_chat = LLMChain(llm=llama3, prompt=prompt)
107
  response = Generated_chat.invoke({'retrieved_documents': retrieved_documents, 'query': query})
108
 
109
+ # Append the query and the response to history as a list of length 2
110
+ history.append([query, response['text']])
111
  return response['text'], history
112
 
113
  def gradio_app():