YingxuHe commited on
Commit
6994ab8
·
verified ·
1 Parent(s): 7657096

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -11,7 +11,7 @@ local_port = int(os.getenv('LOCAL_PORT'))
11
 
12
  @st.cache_resource()
13
  def load_model():
14
- openai_api_key = "EMPTY"
15
  openai_api_base = f"http://localhost:{local_port}/v1"
16
 
17
  client = OpenAI(
 
11
 
12
  @st.cache_resource()
13
  def load_model():
14
+ openai_api_key = os.getenv('API_KEY')
15
  openai_api_base = f"http://localhost:{local_port}/v1"
16
 
17
  client = OpenAI(