kiran475h commited on
Commit
922f119
1 Parent(s): 0ab2428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # Q&A Chatbot
2
- from langchain_openai import ChatOpenAI
 
3
 
4
  from dotenv import load_dotenv
5
 
@@ -14,7 +15,7 @@ os.environ["OPENAI_API_KEY"] = st.secrets["OPENAI_API_KEY"]
14
 
15
 
16
  def get_openai_response(question):
17
- llm = ChatOpenAI(model_name="gpt-3.5-turbo-0125",temperature =0.6)
18
  response = llm(question)
19
  return response
20
  #initialize out streamlit app
 
1
  # Q&A Chatbot
2
+ # from langchain_openai import ChatOpenAI
3
+ from langchain.llms import OpenAI
4
 
5
  from dotenv import load_dotenv
6
 
 
15
 
16
 
17
  def get_openai_response(question):
18
+ llm = OpenAI(model_name="gpt-3.5-turbo-0125",temperature =0.6)
19
  response = llm(question)
20
  return response
21
  #initialize out streamlit app