Skip to content

Commit

Permalink
[SPARKNLP-1011] Adding addFile changes to UAEEmbeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
danilojsl committed Apr 16, 2024
1 parent e849215 commit be70be8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ trait ReadUAEDLModel extends ReadTensorflowModel with ReadOnnxModel {
.setModelIfNotSet(spark, Some(wrapper), None)

case ONNX.name =>
val onnxWrapper = OnnxWrapper.read(localModelPath, zipped = false, useBundle = true)
val onnxWrapper =
OnnxWrapper.read(spark, localModelPath, zipped = false, useBundle = true)
annotatorModel
.setModelIfNotSet(spark, None, Some(onnxWrapper))

Expand Down

0 comments on commit be70be8

Please sign in to comment.