Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,8 @@ def translate(input_text, inputs_transStyle):
|
|
| 141 |
|
| 142 |
|
| 143 |
# 在 https://platform.openai.com/signup 注册并获取 API 密钥
|
| 144 |
-
openai.api_key = "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"
|
|
|
|
| 145 |
|
| 146 |
def generate_summary(text_input):
|
| 147 |
response = openai.ChatCompletion.create(
|
|
|
|
| 141 |
|
| 142 |
|
| 143 |
# 在 https://platform.openai.com/signup 注册并获取 API 密钥
|
| 144 |
+
#openai.api_key = "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"
|
| 145 |
+
openai.api_key = openai_api_key
|
| 146 |
|
| 147 |
def generate_summary(text_input):
|
| 148 |
response = openai.ChatCompletion.create(
|