joeyanuff commited on
Commit
2762086
1 Parent(s): d57e9e4

model changed to 3.5-turbo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-003', temperature=temperature, max_tokens=512)
33
  os.environ["OPENAI_API_KEY"] = ""
34
 
35
  llm_chain = LLMChain(llm=llm, prompt=PROMPT_TEMPLATE, verbose=True)
@@ -183,7 +183,7 @@ with block:
183
  with gr.Row():
184
  temperature_slider = gr.Slider(label="GPT Temperature", value=TEMPERATURE_DEFAULT, minimum=0.0, maximum=1.0,
185
  step=0.1)
186
- title = gr.Markdown ("""<h3><center>GPT-3 Mother Goose Sluicer</center></h3>""")
187
  openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key",
188
  show_label=False, lines=1, type='password')
189
 
 
29
  openai_api_key = api_key
30
 
31
  os.environ["OPENAI_API_KEY"] = api_key
32
+ llm = OpenAI(model_name='gpt-3.5-turbo', temperature=temperature, max_tokens=512)
33
  os.environ["OPENAI_API_KEY"] = ""
34
 
35
  llm_chain = LLMChain(llm=llm, prompt=PROMPT_TEMPLATE, verbose=True)
 
183
  with gr.Row():
184
  temperature_slider = gr.Slider(label="GPT Temperature", value=TEMPERATURE_DEFAULT, minimum=0.0, maximum=1.0,
185
  step=0.1)
186
+ title = gr.Markdown ("""<h3><center>GPT-3 Grimm Verses</center></h3>""")
187
  openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key",
188
  show_label=False, lines=1, type='password')
189