aboutsummaryrefslogtreecommitdiff
path: root/iTexSnip/Utils/TexTellerModel.swift
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-10-21 23:51:06 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-10-21 23:51:06 -0600
commit05cf4dd46aebfaa7812989c88eb91d303a43d3e7 (patch)
tree6cf0542910c72f8135345facbcf39a8eb409d97e /iTexSnip/Utils/TexTellerModel.swift
parentc343140bcf9862b7b4b0d465b67e51eb42f45008 (diff)
bruh
Diffstat (limited to 'iTexSnip/Utils/TexTellerModel.swift')
-rw-r--r--iTexSnip/Utils/TexTellerModel.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/iTexSnip/Utils/TexTellerModel.swift b/iTexSnip/Utils/TexTellerModel.swift
index fb3bcd9..2f71919 100644
--- a/iTexSnip/Utils/TexTellerModel.swift
+++ b/iTexSnip/Utils/TexTellerModel.swift
@@ -8,6 +8,12 @@
import OnnxRuntimeBindings
import AppKit
+public enum ModelError: Error {
+ case encoderModelNotFound
+ case decoderModelNotFound
+ case imageError
+}
+
public struct TexTellerModel {
public let encoderSession: ORTSession
public let decoderSession: ORTSession