profoz commited on
Commit
ffc063e
·
1 Parent(s): 3523908

upgrade to davinci 3

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def qa_gpt3(question, context):
13
  openai.api_key = st.secrets["openai_key"]
14
 
15
  response = openai.Completion.create(
16
- model="text-davinci-002",
17
  prompt=f"Answer given the following context: {context}\n\nQuestion: {question}",
18
  temperature=0.7,
19
  max_tokens=256,
 
13
  openai.api_key = st.secrets["openai_key"]
14
 
15
  response = openai.Completion.create(
16
+ model="text-davinci-003",
17
  prompt=f"Answer given the following context: {context}\n\nQuestion: {question}",
18
  temperature=0.7,
19
  max_tokens=256,