From 5f069789459a7b49e137c10fffd08022fa1984a5 Mon Sep 17 00:00:00 2001 From: Han Yin Date: Tue, 2 Sep 2025 14:38:46 -0700 Subject: [PATCH] nit: address Rojin's feedbacks on model import message again --- .../bottombar/ModelsManagementBottomBar.kt | 2 +- .../screens/ModelsManagementAndDeletingScreen.kt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt index e0d1d0f4a7..2287d28a80 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt @@ -217,7 +217,7 @@ fun ModelsManagementBottomBar( onClick = importingConfig.importFromLocal ) DropdownMenuItem( - text = { Text("Download a model from Hugging Face") }, + text = { Text("Download from Hugging Face") }, leadingIcon = { Icon( painter = painterResource(id = R.drawable.logo_huggingface), diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt index a1bf43368a..2b8b5364f5 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt @@ -117,14 +117,14 @@ fun ModelsManagementAndDeletingScreen( } else if (filteredModels.isEmpty()) { // Prompt the user to import a model 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" 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" + - "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( modifier = Modifier.fillMaxSize(0.9f).align(Alignment.Center), @@ -449,10 +449,10 @@ private fun ImportFromHuggingFaceDialog( Text( modifier = Modifier.fillMaxWidth(), text = models?.let { - "These open-source models from Hugging Face are ungated and free for everyone.\n\n" + - "Please use them at your own discretion.\n\n" + - "Select a model and tap download button:" - } ?: "Searching on HuggingFace for ungated models available for free downloading...", + "The Hugging Face models shown here have been pre-filtered to be moderately sized and correctly quantized.\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 to download:" + } ?: "Searching on HuggingFace for open-source models free for downloading...", style = MaterialTheme.typography.bodyLarge, textAlign = TextAlign.Start, )