fix: use translation for aspect ratios label (#3001)

use javascript code instead of python handling for updates for https://github.com/lllyasviel/Fooocus/pull/2590
This commit is contained in:
Manuel Schmid
2024-05-26 19:23:21 +02:00
committed by GitHub
parent 12dc2396f6
commit de34023c79
3 changed files with 14 additions and 9 deletions
+5
View File
@@ -256,3 +256,8 @@ function set_theme(theme) {
window.location.replace(gradioURL + '?__theme=' + theme);
}
}
function htmlDecode(input) {
var doc = new DOMParser().parseFromString(input, "text/html");
return doc.documentElement.textContent;
}