umangchaudhry commited on
Commit
342bac4
·
1 Parent(s): a125d21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def respond(message, chat_history):
43
  if len(chat_history) != 0:
44
  chat_history = [(chat_history[0][0], chat_history[0][1])]
45
 
46
- model = str(get_model())
47
  # Create ChatOpenAI and ConversationalRetrievalChain
48
  model = ChatOpenAI(model=model)
49
  qa = ConversationalRetrievalChain.from_llm(model, retriever)
 
43
  if len(chat_history) != 0:
44
  chat_history = [(chat_history[0][0], chat_history[0][1])]
45
 
46
+ model = str(get_model()[0])
47
  # Create ChatOpenAI and ConversationalRetrievalChain
48
  model = ChatOpenAI(model=model)
49
  qa = ConversationalRetrievalChain.from_llm(model, retriever)