Skip to content

Commit 03119c2

Browse files
committed
Missing .get()
1 parent a43abc2 commit 03119c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/demo-apps/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/LlmBenchmarkRunner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ protected void onCreate(Bundle savedInstanceState) {
4040
modelDir = new File(intent.getStringExtra("model_dir"));
4141
File model = Arrays.stream(modelDir.listFiles())
4242
.filter(file -> file.getName().endsWith(".pte"))
43-
.findFirst();
43+
.findFirst()
44+
.get();
4445
String tokenizerPath = intent.getStringExtra("tokenizer_path");
4546

4647
float temperature = intent.getFloatExtra("temperature", 0.8f);

0 commit comments

Comments
 (0)