theRealNG commited on
Commit
0168dc5
·
1 Parent(s): fe7ebd6

load model from env

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ load_dotenv()
7
 
8
  def getBlogContent(topic, number_of_words, field, points):
9
  llm = ChatOpenAI(openai_api_key=os.getenv("OPENAI_API_KEY"),
10
- model_name="gpt-3.5-turbo-1106", temperature=0)
11
 
12
  template = """
13
  You are an expert in "{field}". Write a blog to express your opinion on the following topic "{topic}".
 
7
 
8
  def getBlogContent(topic, number_of_words, field, points):
9
  llm = ChatOpenAI(openai_api_key=os.getenv("OPENAI_API_KEY"),
10
+ model_name=os.getenv("MODEL_NAME"), temperature=0)
11
 
12
  template = """
13
  You are an expert in "{field}". Write a blog to express your opinion on the following topic "{topic}".