Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def gpt3(texts):
|
|
42 |
# openai.api_key = os.environ["Secret"]
|
43 |
openai.api_key = st.secrets['OPENAI_KEY'] #'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'#'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' #'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'
|
44 |
response = openai.Completion.create(
|
45 |
-
engine="
|
46 |
prompt= texts,
|
47 |
temperature=temp,
|
48 |
max_tokens=750,
|
|
|
42 |
# openai.api_key = os.environ["Secret"]
|
43 |
openai.api_key = st.secrets['OPENAI_KEY'] #'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'#'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' #'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'
|
44 |
response = openai.Completion.create(
|
45 |
+
engine="text-davinci-003",
|
46 |
prompt= texts,
|
47 |
temperature=temp,
|
48 |
max_tokens=750,
|