Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from azure.core.credentials import AzureKeyCredential
|
|
| 4 |
|
| 5 |
# Azure Text Analytics setup
|
| 6 |
azure_endpoint = "https://t6langservice.cognitiveservices.azure.com/"
|
| 7 |
-
azure_api_key = "
|
| 8 |
text_analytics_client = TextAnalyticsClient(endpoint=azure_endpoint, credential=AzureKeyCredential(azure_api_key))
|
| 9 |
|
| 10 |
def classify_text_azure(text):
|
|
|
|
| 4 |
|
| 5 |
# Azure Text Analytics setup
|
| 6 |
azure_endpoint = "https://t6langservice.cognitiveservices.azure.com/"
|
| 7 |
+
azure_api_key = "3CU1gpUszvl7pLb90Ivdp1Kd5WZc56savzdXOK5GV40JHebnxnxoJQQJ99BAACYeBjFXJ3w3AAAaACOGkRT5" # Replace with your actual API key
|
| 8 |
text_analytics_client = TextAnalyticsClient(endpoint=azure_endpoint, credential=AzureKeyCredential(azure_api_key))
|
| 9 |
|
| 10 |
def classify_text_azure(text):
|