diff --git a/assets/index.html b/assets/index.html index 126717b..6a18979 100644 --- a/assets/index.html +++ b/assets/index.html @@ -70,7 +70,7 @@ Noise Reduction (expect JPEG Artifact) - +
When using 2x scaling, we never recommend to use high level of noise reduction, it almost always makes image worse, it makes sense for only some rare cases when image had really bad quality from the beginning.
diff --git a/web.lua b/web.lua index 051d324..63c7a9f 100644 --- a/web.lua +++ b/web.lua @@ -178,6 +178,7 @@ function APIHandler:post() end local FormHandler = class("FormHandler", turbo.web.RequestHandler) local index_ja = file.read("./assets/index.ja.html") +local index_ru = file.read("./assets/index.ru.html") local index_en = file.read("./assets/index.html") function FormHandler:get() local lang = self.request.headers:get("Accept-Language") @@ -188,6 +189,8 @@ function FormHandler:get() end if langs[1] == "ja" then self:write(index_ja) + elseif langs[1] == "ru" then + self:write(index_ru) else self:write(index_en) end @@ -208,6 +211,7 @@ local app = turbo.web.Application:new( {"^/$", FormHandler}, {"^/index.html", turbo.web.StaticFileHandler, path.join("./assets", "index.html")}, {"^/index.ja.html", turbo.web.StaticFileHandler, path.join("./assets", "index.ja.html")}, + {"^/index.ru.html", turbo.web.StaticFileHandler, path.join("./assets", "index.ru.html")}, {"^/api$", APIHandler}, } )