From ced0966ffc453d100959d175319de98adf7a0d2d Mon Sep 17 00:00:00 2001 From: josc146 Date: Sat, 3 Jun 2023 19:38:24 +0800 Subject: [PATCH] display current strategy --- frontend/src/_locales/zh-hans/main.json | 3 ++- frontend/src/pages/Configs.tsx | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/_locales/zh-hans/main.json b/frontend/src/_locales/zh-hans/main.json index 607035c..60f7684 100644 --- a/frontend/src/_locales/zh-hans/main.json +++ b/frontend/src/_locales/zh-hans/main.json @@ -137,5 +137,6 @@ "MacOS is not supported yet, please convert manually.": "暂不支持MacOS, 请手动转换", "Microsoft Visual C++ Redistributable is not installed, would you like to download it?": "微软VC++组件未安装, 是否下载?", "Path Cannot Contain Space": "路径不能包含空格", - "Failed to switch model, please try starting the program with administrator privileges.": "切换模型失败, 请尝试以管理员权限启动程序" + "Failed to switch model, please try starting the program with administrator privileges.": "切换模型失败, 请尝试以管理员权限启动程序", + "Current Strategy": "当前Strategy" } \ No newline at end of file diff --git a/frontend/src/pages/Configs.tsx b/frontend/src/pages/Configs.tsx index c22ac4d..599996d 100644 --- a/frontend/src/pages/Configs.tsx +++ b/frontend/src/pages/Configs.tsx @@ -12,7 +12,8 @@ import { Label, Option, Select, - Switch + Switch, + Text } from '@fluentui/react-components'; import { AddCircle20Regular, @@ -895,9 +896,14 @@ export const Configs: FC = observer(() => { } /> } - {selectedConfig.modelParameters.device == 'CUDA' &&
} { - selectedConfig.modelParameters.device == 'CUDA' && {getStrategy(selectedConfig)} } /> + } + { + selectedConfig.modelParameters.device == 'CUDA' && +