amithdoreswamy commited on
Commit
c7416c2
·
verified ·
1 Parent(s): 98335dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ from langchain_openai import OpenAI
17
  #Function to return the response
18
  def load_answer(question):
19
  # "text-davinci-003" model is depreciated, so using the latest one https://platform.openai.com/docs/deprecations
20
- llm = OpenAI(model_name="text-davinci-003",temperature=0)
21
 
22
  #Last week langchain has recommended to use invoke function for the below please :)
23
  answer=llm.invoke(question)
 
17
  #Function to return the response
18
  def load_answer(question):
19
  # "text-davinci-003" model is depreciated, so using the latest one https://platform.openai.com/docs/deprecations
20
+ llm = OpenAI(model_name="gpt-3.5-turbo-instruct",temperature=0)
21
 
22
  #Last week langchain has recommended to use invoke function for the below please :)
23
  answer=llm.invoke(question)