From 57b5001f5c5fa3bb15e900839e209f9db70edf83 Mon Sep 17 00:00:00 2001 From: Han Yin Date: Sun, 20 Apr 2025 17:52:55 -0700 Subject: [PATCH] nit: revert accidental committing of debug code --- .../revamp/viewmodel/ModelsManagementViewModel.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/llama.android/app/src/main/java/com/example/llama/revamp/viewmodel/ModelsManagementViewModel.kt b/examples/llama.android/app/src/main/java/com/example/llama/revamp/viewmodel/ModelsManagementViewModel.kt index 8cc9093110..e8dcc46527 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/revamp/viewmodel/ModelsManagementViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/revamp/viewmodel/ModelsManagementViewModel.kt @@ -8,7 +8,6 @@ import androidx.lifecycle.viewModelScope import com.example.llama.revamp.data.model.ModelInfo import com.example.llama.revamp.data.repository.InsufficientStorageException import com.example.llama.revamp.data.repository.ModelRepository -import com.example.llama.revamp.util.GgufMetadataReader import com.example.llama.revamp.util.getFileNameFromUri import com.example.llama.revamp.util.getFileSizeFromUri import com.example.llama.revamp.viewmodel.ModelManagementState.Deletion @@ -193,14 +192,7 @@ class ModelsManagementViewModel @Inject constructor( } // TODO-han.yin: Stub for now. Would need to investigate HuggingFace APIs - fun importFromHuggingFace() { - viewModelScope.launch { -// val path = "/data/user/0/com.example.llama/files/models/Phi-4-mini-instruct-Q4_0.gguf" - val path = "/data/user/0/com.example.llama/files/models/gemma-3-4b-it-Q4_K_M.gguf" - val metadata = GgufMetadataReader().readStructuredMetadata(path) - Log.i("JOJO", "GGUF Metadata for $path:\n $metadata") - } - } + fun importFromHuggingFace() {} /** * First show confirmation instead of starting deletion immediately