Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|
| 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 = {}
|