Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from dotenv import load_dotenv
|
|
3 |
|
4 |
import os
|
5 |
|
6 |
-
load_dotenv() #This is to load the .env file into the environment'''
|
7 |
|
8 |
import streamlit as st
|
9 |
|
@@ -16,7 +16,7 @@ st.header("Langchain Application")
|
|
16 |
## Function to load OpenAI model andto get the response.
|
17 |
|
18 |
def get_openai_response(question):
|
19 |
-
llm=OpenAI(
|
20 |
response = llm(question)
|
21 |
return response
|
22 |
|
|
|
3 |
|
4 |
import os
|
5 |
|
6 |
+
#load_dotenv() #This is to load the .env file into the environment'''
|
7 |
|
8 |
import streamlit as st
|
9 |
|
|
|
16 |
## Function to load OpenAI model andto get the response.
|
17 |
|
18 |
def get_openai_response(question):
|
19 |
+
llm=OpenAI(model_name="gpt-3.5-turbo-instruct",temperature=0.5)
|
20 |
response = llm(question)
|
21 |
return response
|
22 |
|