Spaces:
Runtime error
Runtime error
Update backend/main.py
Browse files- backend/main.py +2 -2
backend/main.py
CHANGED
|
@@ -1698,9 +1698,9 @@ async def update_pipeline_valves(
|
|
| 1698 |
async def get_app_config():
|
| 1699 |
# Checking and Handling the Absence of 'ui' in CONFIG_DATA
|
| 1700 |
|
| 1701 |
-
default_locale = "
|
| 1702 |
if "ui" in CONFIG_DATA:
|
| 1703 |
-
default_locale = CONFIG_DATA["ui"].get("default_locale", "
|
| 1704 |
|
| 1705 |
# The Rest of the Function Now Uses the Variables Defined Above
|
| 1706 |
return {
|
|
|
|
| 1698 |
async def get_app_config():
|
| 1699 |
# Checking and Handling the Absence of 'ui' in CONFIG_DATA
|
| 1700 |
|
| 1701 |
+
default_locale = "zh-CN"
|
| 1702 |
if "ui" in CONFIG_DATA:
|
| 1703 |
+
default_locale = CONFIG_DATA["ui"].get("default_locale", "zh-CN")
|
| 1704 |
|
| 1705 |
# The Rest of the Function Now Uses the Variables Defined Above
|
| 1706 |
return {
|