sathieesh commited on
Commit
9399878
1 Parent(s): b1460b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(openai_api_key=os.environ.get("OPEN_API_KEY"),model_name="gpt-3.5-turbo-instruct",temperature=0.5)
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