umangchaudhry commited on
Commit
305386f
1 Parent(s): 5188ff9

Update app.py

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