Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,9 @@ from pathlib import Path
|
|
| 14 |
|
| 15 |
|
| 16 |
client = AzureOpenAI(
|
| 17 |
-
api_key
|
| 18 |
-
azure_endpoint
|
| 19 |
-
api_version
|
| 20 |
)
|
| 21 |
|
| 22 |
embedding_model = HuggingFaceEmbeddings(model_name='thenlper/gte-small')
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
client = AzureOpenAI(
|
| 17 |
+
api_key=os.environ["AZURE_OPENAI_KEY"],
|
| 18 |
+
azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"],
|
| 19 |
+
api_version="2024-02-01"
|
| 20 |
)
|
| 21 |
|
| 22 |
embedding_model = HuggingFaceEmbeddings(model_name='thenlper/gte-small')
|