Marathon23 commited on
Commit
6fcdb70
·
verified ·
1 Parent(s): 81b51c1

Update app (2).py

Browse files
Files changed (1) hide show
  1. app (2).py +1 -1
app (2).py CHANGED
@@ -6,7 +6,7 @@ import requests
6
  import json
7
 
8
  # 從 Hugging Face secrets 中讀取 OpenAI API 金鑰
9
- api_key = os.getenv('OPENAI_API_KEY')
10
  if not api_key:
11
  raise ValueError("請設置 'OPENAI_API_KEY' 環境變數")
12
 
 
6
  import json
7
 
8
  # 從 Hugging Face secrets 中讀取 OpenAI API 金鑰
9
+ api_key = os.getenv('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')
10
  if not api_key:
11
  raise ValueError("請設置 'OPENAI_API_KEY' 環境變數")
12