feliksius commited on
Commit
4996216
·
verified ·
1 Parent(s): e63c726

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ app = FastAPI()
19
  logging.basicConfig(
20
  level=logging.INFO,
21
  handlers=[
22
- logging.handlers.RotatingFileHandler("app.log", maxBytes=1000000, backupCount=1),
23
  logging.StreamHandler() # Added for console output
24
  ]
25
  )
@@ -34,7 +34,7 @@ MODEL_MAP = {
34
  }
35
 
36
  # List of terms to protect from translation
37
- PROTECTED_TERMS = ["2030 Aspirations", "Griffith", "SDG 2030"]
38
 
39
  # Cache for translators to avoid reloading models unnecessarily
40
  translators = {}
 
19
  logging.basicConfig(
20
  level=logging.INFO,
21
  handlers=[
22
+ logging.handlers.RotatingFileHandler("/app/logs/app.log", maxBytes=1000000, backupCount=1),
23
  logging.StreamHandler() # Added for console output
24
  ]
25
  )
 
34
  }
35
 
36
  # List of terms to protect from translation
37
+ PROTECTED_TERMS = ["2030 Aspirations", "Griffith"]
38
 
39
  # Cache for translators to avoid reloading models unnecessarily
40
  translators = {}