From 79684854c46aefc5650eb27599f7317786f3da5b Mon Sep 17 00:00:00 2001 From: Tony Salomone <dadmobile@gmail.com> Date: Wed, 26 Feb 2025 13:11:54 -0500 Subject: [PATCH] Prettier localmodelstore. --- .../components/ModelZoo/LocalModelsTable.tsx | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/src/renderer/components/ModelZoo/LocalModelsTable.tsx b/src/renderer/components/ModelZoo/LocalModelsTable.tsx index d678ce7d..07d7348b 100644 --- a/src/renderer/components/ModelZoo/LocalModelsTable.tsx +++ b/src/renderer/components/ModelZoo/LocalModelsTable.tsx @@ -11,6 +11,7 @@ import { Option, } from '@mui/joy'; import { + ArrowRightToLineIcon, ArrowDownIcon, FlaskRoundIcon, InfoIcon, @@ -191,38 +192,38 @@ const LocalModelsTable = ({ </Typography> </td> <td> - <Typography style={{overflow: 'hidden'}}> - {' '} - {row?.json_data?.architecture == 'MLX' && ( - <> - <TinyMLXLogo /> - - </> - )} - {row?.json_data?.architecture == 'GGUF' && ( - <> - <img - src="https://avatars.githubusercontent.com/ggerganov" - width="24" - valign="middle" - style={{ borderRadius: '50%' }} - />{' '} - - </> - )} - {[ - 'FalconForCausalLM', - 'Gemma2ForCausalLM', - 'GPTBigCodeForCausalLM', - 'LlamaForCausalLM', - 'MistralForCausalLM', - 'Phi3ForCausalLM', - 'Qwen2ForCausalLM', - 'T5ForConditionalGeneration' - ].includes(row?.json_data?.architecture) && ( - <>🤗 </> - )} - {row?.json_data?.architecture} + <Typography style={{ overflow: 'hidden' }}> + {' '} + {row?.json_data?.architecture == 'MLX' && ( + <> + <TinyMLXLogo /> + + </> + )} + {row?.json_data?.architecture == 'GGUF' && ( + <> + <img + src="https://avatars.githubusercontent.com/ggerganov" + width="24" + valign="middle" + style={{ borderRadius: '50%' }} + />{' '} + + </> + )} + {[ + 'FalconForCausalLM', + 'Gemma2ForCausalLM', + 'GPTBigCodeForCausalLM', + 'LlamaForCausalLM', + 'MistralForCausalLM', + 'Phi3ForCausalLM', + 'Qwen2ForCausalLM', + 'T5ForConditionalGeneration' + ].includes(row?.json_data?.architecture) && ( + <>🤗 </> + )} + {row?.json_data?.architecture} </Typography> </td> <td>{row?.json_data?.parameters}</td> @@ -257,8 +258,8 @@ const LocalModelsTable = ({ if ( confirm( "Are you sure you want to delete model '" + - row.model_id + - "'?" + row.model_id + + "'?" ) ) { await fetch( -- GitLab