nit: revert accidental committing of debug code
This commit is contained in:
parent
ec47fa3d14
commit
57b5001f5c
|
|
@ -8,7 +8,6 @@ import androidx.lifecycle.viewModelScope
|
||||||
import com.example.llama.revamp.data.model.ModelInfo
|
import com.example.llama.revamp.data.model.ModelInfo
|
||||||
import com.example.llama.revamp.data.repository.InsufficientStorageException
|
import com.example.llama.revamp.data.repository.InsufficientStorageException
|
||||||
import com.example.llama.revamp.data.repository.ModelRepository
|
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.getFileNameFromUri
|
||||||
import com.example.llama.revamp.util.getFileSizeFromUri
|
import com.example.llama.revamp.util.getFileSizeFromUri
|
||||||
import com.example.llama.revamp.viewmodel.ModelManagementState.Deletion
|
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
|
// TODO-han.yin: Stub for now. Would need to investigate HuggingFace APIs
|
||||||
fun importFromHuggingFace() {
|
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* First show confirmation instead of starting deletion immediately
|
* First show confirmation instead of starting deletion immediately
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue