Spaces:
Runtime error
Runtime error
Commit
·
6639c18
1
Parent(s):
9ba085b
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ def respond(message, chat_history):
|
|
37 |
model = ChatOpenAI(model='gpt-3.5-turbo')
|
38 |
qa = ConversationalRetrievalChain.from_llm(model, retriever)
|
39 |
|
40 |
-
chat_history=[]
|
41 |
bot_message = qa({"question": message, "chat_history": chat_history})
|
42 |
chat_history.append((message, bot_message['answer']))
|
43 |
time.sleep(1)
|
|
|
37 |
model = ChatOpenAI(model='gpt-3.5-turbo')
|
38 |
qa = ConversationalRetrievalChain.from_llm(model, retriever)
|
39 |
|
|
|
40 |
bot_message = qa({"question": message, "chat_history": chat_history})
|
41 |
chat_history.append((message, bot_message['answer']))
|
42 |
time.sleep(1)
|