Spaces:
Sleeping
Sleeping
Commit
·
5bfc0ac
1
Parent(s):
2e079f2
second commit
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ class URLValidator:
|
|
12 |
def __init__(self):
|
13 |
# SerpAPI Key
|
14 |
# This api key is acquired from SerpAPI website.
|
15 |
-
self.serpapi_key = SERPAPI_API_KEY
|
16 |
|
17 |
# Load models once to avoid redundant API calls
|
18 |
self.similarity_model = SentenceTransformer('sentence-transformers/all-mpnet-base-v2')
|
|
|
12 |
def __init__(self):
|
13 |
# SerpAPI Key
|
14 |
# This api key is acquired from SerpAPI website.
|
15 |
+
self.serpapi_key = os.getenv("SERPAPI_API_KEY")
|
16 |
|
17 |
# Load models once to avoid redundant API calls
|
18 |
self.similarity_model = SentenceTransformer('sentence-transformers/all-mpnet-base-v2')
|