Spaces:
Running
Running
Update scripts/utility_functions.py
Browse files
scripts/utility_functions.py
CHANGED
|
@@ -237,7 +237,7 @@ timeout = httpx.Timeout(
|
|
| 237 |
|
| 238 |
|
| 239 |
async def call_nlp_service(payload, method, max_retries=5, base_delay=1.0):
|
| 240 |
-
url = f"https://amougou-
|
| 241 |
headers = {"Authorization": f"Bearer {MICROSERVICE_KEY}"}
|
| 242 |
|
| 243 |
async with nlp_semaphore:
|
|
|
|
| 237 |
|
| 238 |
|
| 239 |
async def call_nlp_service(payload, method, max_retries=5, base_delay=1.0):
|
| 240 |
+
url = f"https://amougou-mbida-nlp-preprocessor.hf.space/{method}"
|
| 241 |
headers = {"Authorization": f"Bearer {MICROSERVICE_KEY}"}
|
| 242 |
|
| 243 |
async with nlp_semaphore:
|