Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def analyze_healthcare_text(text):
|
|
| 31 |
base_url = "https://ta4h-endpoint.cognitiveservices.azure.com/language/analyze-text/jobs"
|
| 32 |
headers = {
|
| 33 |
"Content-Type": "application/json",
|
| 34 |
-
"Ocp-Apim-Subscription-Key": os.environ["
|
| 35 |
}
|
| 36 |
|
| 37 |
# Data to be sent in the initial POST request
|
|
|
|
| 31 |
base_url = "https://ta4h-endpoint.cognitiveservices.azure.com/language/analyze-text/jobs"
|
| 32 |
headers = {
|
| 33 |
"Content-Type": "application/json",
|
| 34 |
+
"Ocp-Apim-Subscription-Key": os.environ["TA4HAPIKEY"]
|
| 35 |
}
|
| 36 |
|
| 37 |
# Data to be sent in the initial POST request
|