Skip to content

Commit

Permalink
Update packages/mediapipe-core/lib/src/task_options.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Kate Lovett <katelovett@google.com>
  • Loading branch information
craiglabenz and Piinks committed Oct 11, 2023
1 parent e9fc31c commit e2d9cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mediapipe-core/lib/src/task_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'ffi_utils.dart';
class BaseOptions extends Equatable {
const BaseOptions({this.modelAssetBuffer, this.modelAssetPath})
: assert(
!(modelAssetBuffer == null && modelAssetPath == null),
modelAssetBuffer != null || modelAssetPath != null,
'You must supply either `modelAssetBuffer` or `modelAssetPath`',
),
assert(
Expand Down

0 comments on commit e2d9cbd

Please sign in to comment.