SarowarSaurav commited on
Commit
f6bd327
Β·
verified Β·
1 Parent(s): 3a33882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -14,9 +14,10 @@ from deep_translator import GoogleTranslator
14
  import os
15
 
16
  # βœ… Securely load Azure credentials from environment
17
- token = os.getenv("AZURE_API_KEY")
18
- endpoint = os.getenv("AZURE_ENDPOINT")
19
- model_name = os.getenv("AZURE_MODEL_NAME", "gpt-4o") # Optional: use secret or default to gpt-4o
 
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()):