From 197da05cb4b993a5c71957bd33bbd7ecead36ef7 Mon Sep 17 00:00:00 2001 From: WinsWebsA <136932179+WinsWebsA@users.noreply.github.com> Date: Sun, 19 May 2024 22:07:25 +0000 Subject: [PATCH 1/2] Update README.md When calling the tf interpreter, it was supposed tf.Interpreter.fromAsset not tfl.Interpreter.fromAsset. so there was a typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9169399..bdb8126 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ In the dependency section of `pubspec.yaml` file, add `tflite_flutter: ^0.10.1` Place `your_model.tflite` in `assets` directory. Make sure to include assets in `pubspec.yaml`. ```dart - final interpreter = await tfl.Interpreter.fromAsset('assets/your_model.tflite'); + final interpreter = await tf.Interpreter.fromAsset('assets/your_model.tflite'); ``` Refer to the documentation for info on creating interpreter from buffer or file. From 58d79e001ed944bb0457b92330b6ceae60f4fe3e Mon Sep 17 00:00:00 2001 From: WinsWebsA <136932179+WinsWebsA@users.noreply.github.com> Date: Sun, 19 May 2024 22:58:20 +0000 Subject: [PATCH 2/2] making change to the Interpreter --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdb8126..a0a3144 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ In the dependency section of `pubspec.yaml` file, add `tflite_flutter: ^0.10.1` Place `your_model.tflite` in `assets` directory. Make sure to include assets in `pubspec.yaml`. ```dart - final interpreter = await tf.Interpreter.fromAsset('assets/your_model.tflite'); + final interpreter = await Interpreter.fromAsset('assets/your_model.tflite'); ``` Refer to the documentation for info on creating interpreter from buffer or file.