alecinvan commited on
Commit
f0d9302
1 Parent(s): d13411f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -143,6 +143,8 @@ def translate(input_text, inputs_transStyle):
143
  # 在 https://platform.openai.com/signup 注册并获取 API 密钥
144
  #openai.api_key = "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"
145
 
 
 
146
 
147
  def generate_summary(text_input):
148
  response = openai.ChatCompletion.create(
 
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(