From 029bd318e94a4ae26eaa8ec0e015ab85d3ce07fd Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 26 Jun 2024 12:31:11 -0400 Subject: [PATCH] If huggingface search doesn't give this information, then display question mark. Signed-off-by: Adam Treat --- gpt4all-chat/qml/AddModelView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpt4all-chat/qml/AddModelView.qml b/gpt4all-chat/qml/AddModelView.qml index 2762e136..c2b596ed 100644 --- a/gpt4all-chat/qml/AddModelView.qml +++ b/gpt4all-chat/qml/AddModelView.qml @@ -630,7 +630,7 @@ Rectangle { color: theme.mutedDarkTextColor } Text { - text: ramrequired + qsTr(" GB") + text: ramrequired >= 0 ? ramrequired + qsTr(" GB") : "?" color: theme.textColor font.pixelSize: theme.fontSizeSmaller font.bold: true @@ -652,7 +652,7 @@ Rectangle { color: theme.mutedDarkTextColor } Text { - text: parameters + text: parameters !== "" ? parameters : "?" color: theme.textColor font.pixelSize: theme.fontSizeSmaller font.bold: true