GiantPandas commited on
Commit
9ca3781
·
verified ·
1 Parent(s): 59af6f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,9 +41,10 @@ def array_to_image_path(image_array):
41
  return full_path
42
 
43
  from openai import OpenAI
44
- # 设置 OpenAI 的 API 密钥和 API 基础 URL 以使用 vLLM 的 API 服务器。
45
  openai_api_key = "EMPTY"
46
- openai_api_base = "http://47.117.17.202:9999/v1"
 
47
 
48
 
49
  client = OpenAI(
 
41
  return full_path
42
 
43
  from openai import OpenAI
44
+
45
  openai_api_key = "EMPTY"
46
+ openai_api_base = os.environ.get("openai_api_base")
47
+
48
 
49
 
50
  client = OpenAI(