Skip to content

Commit

Permalink
missing local compile
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon.maness committed Apr 9, 2020
1 parent 5f55e7c commit 13ff18b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/java/sq/flutter/tflite/TflitePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ private String loadModel(HashMap args) throws IOException {
boolean isAsset = ((int)args.get("isAsset") == 1);
MappedByteBuffer buffer = null;
String key = null;
AssetManager assetManager = null;
if (isAsset) {
AssetManager assetManager = mRegistrar.context().getAssets();
assetManager = mRegistrar.context().getAssets();
key = mRegistrar.lookupKeyForAsset(model);
AssetFileDescriptor fileDescriptor = assetManager.openFd(key);
FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
Expand Down

0 comments on commit 13ff18b

Please sign in to comment.