Spaces:
Sleeping
Sleeping
Commit ·
165b2b2
1
Parent(s): 9551cbd
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,6 @@ from langchain.tools.json.tool import JsonSpec
|
|
| 19 |
from langchain.indexes import VectorstoreIndexCreator
|
| 20 |
|
| 21 |
|
| 22 |
-
os.environ["OPENAI_API_BASE"] = openai.api_type = "azure"
|
| 23 |
os.environ["OPENAI_API_BASE"] = openai.api_base = "https://eastus-openai-sean.openai.azure.com/"
|
| 24 |
os.environ["OPENAI_API_VERSION"] = openai.api_version = "2023-03-15-preview"
|
| 25 |
|
|
@@ -30,7 +29,7 @@ def analyze_healthcare_text(text):
|
|
| 30 |
base_url = "https://ta4h-endpoint.cognitiveservices.azure.com/language/analyze-text/jobs"
|
| 31 |
headers = {
|
| 32 |
"Content-Type": "application/json",
|
| 33 |
-
"Ocp-Apim-Subscription-Key": os.environ["
|
| 34 |
}
|
| 35 |
|
| 36 |
# Data to be sent in the initial POST request
|
|
|
|
| 19 |
from langchain.indexes import VectorstoreIndexCreator
|
| 20 |
|
| 21 |
|
|
|
|
| 22 |
os.environ["OPENAI_API_BASE"] = openai.api_base = "https://eastus-openai-sean.openai.azure.com/"
|
| 23 |
os.environ["OPENAI_API_VERSION"] = openai.api_version = "2023-03-15-preview"
|
| 24 |
|
|
|
|
| 29 |
base_url = "https://ta4h-endpoint.cognitiveservices.azure.com/language/analyze-text/jobs"
|
| 30 |
headers = {
|
| 31 |
"Content-Type": "application/json",
|
| 32 |
+
"Ocp-Apim-Subscription-Key": os.environ["TA4H-API-KEY"]
|
| 33 |
}
|
| 34 |
|
| 35 |
# Data to be sent in the initial POST request
|