Spaces:
Runtime error
Runtime error
zhzluke96
commited on
Commit
·
53eba30
1
Parent(s):
c6e99b3
update
Browse files- .env.webui +0 -2
- modules/webui/localization.py +2 -0
.env.webui
CHANGED
|
@@ -18,5 +18,3 @@ MAX_BATCH_SIZE=12
|
|
| 18 |
|
| 19 |
V_GIT_TAG="🤗hf(0.5.6-rc)"
|
| 20 |
V_GIT_COMMIT=main
|
| 21 |
-
|
| 22 |
-
LANGUAGE=zh-CN
|
|
|
|
| 18 |
|
| 19 |
V_GIT_TAG="🤗hf(0.5.6-rc)"
|
| 20 |
V_GIT_COMMIT=main
|
|
|
|
|
|
modules/webui/localization.py
CHANGED
|
@@ -27,6 +27,8 @@ def localization_js(filename):
|
|
| 27 |
except Exception as e:
|
| 28 |
print(str(e))
|
| 29 |
print(f"Failed to load localization file {full_name}")
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# current_translation = {k: 'XXX' for k in current_translation.keys()} # use this to see if all texts are covered
|
| 32 |
|
|
|
|
| 27 |
except Exception as e:
|
| 28 |
print(str(e))
|
| 29 |
print(f"Failed to load localization file {full_name}")
|
| 30 |
+
else:
|
| 31 |
+
print(f"Localization file {full_name} not found")
|
| 32 |
|
| 33 |
# current_translation = {k: 'XXX' for k in current_translation.keys()} # use this to see if all texts are covered
|
| 34 |
|