Spaces:
Build error
Build error
upgrade to davinci 3
Browse files
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-
|
| 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,
|