Spaces:
Sleeping
Sleeping
model name typo fix
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def set_openai_api_key(api_key, openai_api_key, temperature, llm_chain):
|
|
29 |
openai_api_key = api_key
|
30 |
|
31 |
os.environ["OPENAI_API_KEY"] = api_key
|
32 |
-
llm = OpenAI(model_name='text-davinci-
|
33 |
os.environ["OPENAI_API_KEY"] = ""
|
34 |
|
35 |
llm_chain = LLMChain(llm=llm, prompt=PROMPT_TEMPLATE, verbose=True)
|
|
|
29 |
openai_api_key = api_key
|
30 |
|
31 |
os.environ["OPENAI_API_KEY"] = api_key
|
32 |
+
llm = OpenAI(model_name='text-davinci-003', temperature=temperature, max_tokens=512)
|
33 |
os.environ["OPENAI_API_KEY"] = ""
|
34 |
|
35 |
llm_chain = LLMChain(llm=llm, prompt=PROMPT_TEMPLATE, verbose=True)
|