We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53053c commit 9fc32b1Copy full SHA for 9fc32b1
llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/ModelType.java
@@ -14,5 +14,18 @@ public enum ModelType {
14
LLAVA_1_5,
15
LLAMA_GUARD_3,
16
QWEN_3,
17
- VOXTRAL,
+ VOXTRAL;
18
+
19
+ @Override
20
+ public String toString() {
21
+ // Replace underscores with spaces, capitalize words, and handle special cases
22
+ String pretty = name().replace('_', ' ').toLowerCase();
23
+ // Capitalize the first letter if needed
24
+ if (!pretty.isEmpty()) {
25
+ pretty = pretty.substring(0, 1).toUpperCase() + pretty.substring(1);
26
+ }
27
+ // Optionally, handle special capitalization
28
+ pretty = pretty.replace("Llava 1 5", "LLaVA 1.5");
29
+ return pretty;
30
31
}
0 commit comments