nit: address Rojin's feedbacks on model import message again

This commit is contained in:
Han Yin 2025-09-02 14:38:46 -07:00
parent eba09a3d40
commit 5f06978945
2 changed files with 8 additions and 8 deletions

View File

@ -217,7 +217,7 @@ fun ModelsManagementBottomBar(
onClick = importingConfig.importFromLocal onClick = importingConfig.importFromLocal
) )
DropdownMenuItem( DropdownMenuItem(
text = { Text("Download a model from Hugging Face") }, text = { Text("Download from Hugging Face") },
leadingIcon = { leadingIcon = {
Icon( Icon(
painter = painterResource(id = R.drawable.logo_huggingface), painter = painterResource(id = R.drawable.logo_huggingface),

View File

@ -117,14 +117,14 @@ fun ModelsManagementAndDeletingScreen(
} else if (filteredModels.isEmpty()) { } else if (filteredModels.isEmpty()) {
// Prompt the user to import a model // Prompt the user to import a model
val title = when (activeFiltersCount) { val title = when (activeFiltersCount) {
0 -> "Choose a model:\nImport locally or download online" 0 -> "Install your first model"
1 -> "No models match\n the selected filter" 1 -> "No models match\n the selected filter"
else -> "No models match\n the selected filters" else -> "No models match\n the selected filters"
} }
val message = "If you already have GGUF models on your computer, " + val message = "If you have already obtained GGUF models on your computer, " +
"please transfer it onto your device, and then select \"Import a local GGUF model\".\n\n" + "please transfer it onto your device, and then select \"Import a local GGUF model\".\n\n" +
"Otherwise, select \"Download from HuggingFace\" and pick one you like." "Otherwise, select \"Download from Hugging Face\" and pick one of the pre-selected models."
InfoView( InfoView(
modifier = Modifier.fillMaxSize(0.9f).align(Alignment.Center), modifier = Modifier.fillMaxSize(0.9f).align(Alignment.Center),
@ -449,10 +449,10 @@ private fun ImportFromHuggingFaceDialog(
Text( Text(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
text = models?.let { text = models?.let {
"These open-source models from Hugging Face are ungated and free for everyone.\n\n" + "The Hugging Face models shown here have been pre-filtered to be moderately sized and correctly quantized.\n\n" +
"Please use them at your own discretion.\n\n" + "Please use responsibly. We do not endorse or take responsibility for misuse or harmful use of these models.\n\n" +
"Select a model and tap download button:" "Select a model to download:"
} ?: "Searching on HuggingFace for ungated models available for free downloading...", } ?: "Searching on HuggingFace for open-source models free for downloading...",
style = MaterialTheme.typography.bodyLarge, style = MaterialTheme.typography.bodyLarge,
textAlign = TextAlign.Start, textAlign = TextAlign.Start,
) )