If huggingface search doesn't give this information, then display question mark.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-06-26 12:31:11 -04:00
parent d5968f4ab2
commit 029bd318e9

View File

@ -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