wendru18 commited on
Commit
f9ff224
·
1 Parent(s): 3ec1634

updated openai key provision

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ def construct_retriever(comments, k=5):
114
  return retriever
115
 
116
  def construct_bot(retriever):
117
- bot = ConversationalRetrievalChain.from_llm(OpenAI(temperature=0), retriever, return_source_documents=True, max_tokens_limit=2000)
118
  return bot
119
 
120
  def get_response(query, chat_history):
 
114
  return retriever
115
 
116
  def construct_bot(retriever):
117
+ bot = ConversationalRetrievalChain.from_llm(OpenAI(openai_api_key=openai.api_key, temperature=0), retriever, return_source_documents=True, max_tokens_limit=2000)
118
  return bot
119
 
120
  def get_response(query, chat_history):