Spaces:
Runtime error
Runtime error
Commit
·
305386f
1
Parent(s):
5188ff9
Update app.py
Browse files
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 =
|
| 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)
|