Update middlewares/utils.py
Browse files- middlewares/utils.py +3 -3
middlewares/utils.py
CHANGED
|
@@ -9,11 +9,11 @@ from dotenv import load_dotenv
|
|
| 9 |
|
| 10 |
|
| 11 |
load_dotenv()
|
| 12 |
-
|
| 13 |
-
|
| 14 |
GOOGLE_SEARCH_ENGINE_ID = os.getenv("GOOGLE_SEARCH_ENGINE_ID")
|
| 15 |
GOOGLE_SEARCH_API_KEY = os.getenv("GOOGLE_SEARCH_API_KEY")
|
| 16 |
-
BING_SEARCH_API_KEY = os.getenv("BING_SEARCH_API_KEY")
|
|
|
|
| 17 |
|
| 18 |
reranker = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
|
| 19 |
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
load_dotenv()
|
| 12 |
+
API_TOKEN = os.getenv("HF_TOKEN")
|
|
|
|
| 13 |
GOOGLE_SEARCH_ENGINE_ID = os.getenv("GOOGLE_SEARCH_ENGINE_ID")
|
| 14 |
GOOGLE_SEARCH_API_KEY = os.getenv("GOOGLE_SEARCH_API_KEY")
|
| 15 |
+
#BING_SEARCH_API_KEY = os.getenv("BING_SEARCH_API_KEY")
|
| 16 |
+
BING_SEARCH_API_KEY = os.environ.get('AZURE_SEARCH_KEY', 'b828219acd4f46d0b77d51b4564a8475')
|
| 17 |
|
| 18 |
reranker = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
|
| 19 |
|