Spaces:
Sleeping
Sleeping
load model from env
Browse files
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=
|
| 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}".
|