Update get_similar_program.py
Browse files- 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))
|