Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -143,9 +143,11 @@ def translate(input_text, inputs_transStyle):
|
|
143 |
# 在 https://platform.openai.com/signup 注册并获取 API 密钥
|
144 |
#openai.api_key = "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"
|
145 |
|
|
|
146 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
147 |
|
148 |
|
|
|
149 |
def generate_summary(text_input):
|
150 |
response = openai.ChatCompletion.create(
|
151 |
model="gpt-3.5-turbo",
|
|
|
143 |
# 在 https://platform.openai.com/signup 注册并获取 API 密钥
|
144 |
#openai.api_key = "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"
|
145 |
|
146 |
+
|
147 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
148 |
|
149 |
|
150 |
+
|
151 |
def generate_summary(text_input):
|
152 |
response = openai.ChatCompletion.create(
|
153 |
model="gpt-3.5-turbo",
|