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