HongcanGuo commited on
Commit
6adad37
·
verified ·
1 Parent(s): 34258e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def img2text(image):
26
 
27
  # 定义文本生成函数
28
  def text2text(user_input):
29
- api_key = "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"
30
  base_url = "https://openrouter.ai/api/v1"
31
 
32
  headers = {
@@ -147,7 +147,7 @@ def text2vid_pro(input_text,desc = "4k, high resolution"):
147
 
148
  def text2text_A(user_input):
149
  # 设置API密钥和基础URL
150
- api_key = "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"
151
  base_url = "https://openrouter.ai/api/v1"
152
 
153
  headers = {
 
26
 
27
  # 定义文本生成函数
28
  def text2text(user_input):
29
+ api_key = os.getenv ["openai_apikey"]
30
  base_url = "https://openrouter.ai/api/v1"
31
 
32
  headers = {
 
147
 
148
  def text2text_A(user_input):
149
  # 设置API密钥和基础URL
150
+ api_key = os.getenv ["openai_apikey"]
151
  base_url = "https://openrouter.ai/api/v1"
152
 
153
  headers = {