Update app.py
Browse files
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="
|
| 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)
|