AIdeaText commited on
Commit
88905b5
1 Parent(s): b9fc721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -29,12 +29,12 @@ from modules.syntax_analysis import visualize_syntax
29
  cosmos_endpoint = os.environ.get("COSMOS_ENDPOINT")
30
  cosmos_key = os.environ.get("COSMOS_KEY")
31
 
32
- if not cosmos_endpoint or not cosmos_key:
33
- raise ValueError("Las variables de entorno COSMOS_ENDPOINT y COSMOS_KEY deben estar configuradas")
34
 
35
- try:
36
- cosmos_key = clean_and_validate_key(cosmos_key)
37
- cosmos_client = CosmosClient(cosmos_endpoint, cosmos_key)
38
 
39
  # SQL API database for user management
40
  user_database = cosmos_client.get_database_client("user_database")
 
29
  cosmos_endpoint = os.environ.get("COSMOS_ENDPOINT")
30
  cosmos_key = os.environ.get("COSMOS_KEY")
31
 
32
+ if not cosmos_endpoint or not cosmos_key:
33
+ raise ValueError("Las variables de entorno COSMOS_ENDPOINT y COSMOS_KEY deben estar configuradas")
34
 
35
+ try:
36
+ cosmos_key = clean_and_validate_key(cosmos_key)
37
+ cosmos_client = CosmosClient(cosmos_endpoint, cosmos_key)
38
 
39
  # SQL API database for user management
40
  user_database = cosmos_client.get_database_client("user_database")