Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,9 @@ load_dotenv()
|
|
| 9 |
|
| 10 |
# Azure Text Analytics setup
|
| 11 |
# this is the end point for the Azure service I created
|
| 12 |
-
azure_endpoint =
|
| 13 |
|
| 14 |
# this is the KEY for the Azure API Service I created. I did not use any class or data structure to store this key
|
| 15 |
-
#azure_api_key = "3CU1gpUszvl7pLb90Ivdp1Kd5WZc56savzdXOK5GV40JHebnxnxoJQQJ99BAACYeBjFXJ3w3AAAaACOGkRT5"
|
| 16 |
azure_api_key = os.getenv("AZURE_API_KEY")
|
| 17 |
|
| 18 |
print(f"Azure API token: {azure_api_key}")
|
|
|
|
| 9 |
|
| 10 |
# Azure Text Analytics setup
|
| 11 |
# this is the end point for the Azure service I created
|
| 12 |
+
azure_endpoint = os.getenv("AZURE_API_ENDPOINT")
|
| 13 |
|
| 14 |
# this is the KEY for the Azure API Service I created. I did not use any class or data structure to store this key
|
|
|
|
| 15 |
azure_api_key = os.getenv("AZURE_API_KEY")
|
| 16 |
|
| 17 |
print(f"Azure API token: {azure_api_key}")
|