Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
110 |
-
history.append(
|
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():
|