Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,10 @@ from deep_translator import GoogleTranslator
|
|
14 |
import os
|
15 |
|
16 |
# β
Securely load Azure credentials from environment
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
20 |
|
21 |
# β
Validate credentials
|
22 |
if not (isinstance(token, str) and token.strip()) or not (isinstance(endpoint, str) and endpoint.strip()):
|
|
|
14 |
import os
|
15 |
|
16 |
# β
Securely load Azure credentials from environment
|
17 |
+
# Azure API credentials
|
18 |
+
token = "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"
|
19 |
+
endpoint = "https://models.inference.ai.azure.com"
|
20 |
+
model_name = "gpt-4o" # Optional: use secret or default to gpt-4o
|
21 |
|
22 |
# β
Validate credentials
|
23 |
if not (isinstance(token, str) and token.strip()) or not (isinstance(endpoint, str) and endpoint.strip()):
|