Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def save_uploadedfile(uploadedfile):
|
|
37 |
|
38 |
def gpt3(texts):
|
39 |
# openai.api_key = os.environ["Secret"]
|
40 |
-
openai.api_key = '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'#'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' #'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'
|
41 |
response = openai.Completion.create(
|
42 |
engine="text-davinci-002",
|
43 |
prompt= texts,
|
|
|
37 |
|
38 |
def gpt3(texts):
|
39 |
# openai.api_key = os.environ["Secret"]
|
40 |
+
openai.api_key = st.secrets['OPENAI_KEY'] #'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'#'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' #'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'
|
41 |
response = openai.Completion.create(
|
42 |
engine="text-davinci-002",
|
43 |
prompt= texts,
|