Adr740 commited on
Commit
9f89466
1 Parent(s): 06b126d

Update get_similar_program.py

Browse files
Files changed (1) hide show
  1. get_similar_program.py +1 -2
get_similar_program.py CHANGED
@@ -1,9 +1,8 @@
1
  import numpy as np
2
  import pandas as pd
3
  from openai import OpenAI
4
- import config
5
 
6
- client = OpenAI(api_key=)
7
 
8
  def cosine_similarity(a, b):
9
  return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
 
1
  import numpy as np
2
  import pandas as pd
3
  from openai import OpenAI
 
4
 
5
+ client = OpenAI(api_key= os.environ.get("apk"))
6
 
7
  def cosine_similarity(a, b):
8
  return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))