shandy31 commited on
Commit
441501e
1 Parent(s): b6f9f58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # Q&A Chatbot
2
  from langchain.llms import OpenAI
 
3
 
4
  #from dotenv import load_dotenv
5
 
@@ -11,7 +12,7 @@ import os
11
  ## Function to load OpenAI model and get respones
12
 
13
  def get_openai_response(question):
14
- llm=OpenAI(model_name="text-davinci-003",temperature=0.5)
15
  response=llm(question)
16
  return response
17
 
 
1
  # Q&A Chatbot
2
  from langchain.llms import OpenAI
3
+ from constants import openai_key
4
 
5
  #from dotenv import load_dotenv
6
 
 
12
  ## Function to load OpenAI model and get respones
13
 
14
  def get_openai_response(question):
15
+ llm=OpenAI(model_name="gpt-3.5-turbo-instruct",temperature=0.5)
16
  response=llm(question)
17
  return response
18