Skip to content

Commit

Permalink
Hotfix: Add runOnnxInference to zkml init file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuk Manojlovic committed Aug 30, 2024
1 parent ab1fadc commit a9bf76d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions coretex/zkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@

# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from .inference import runOnnxInference
2 changes: 1 addition & 1 deletion coretex/zkml/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def runOnnxInference(
return result

if compiledModelPath is None or proveKey is None or settingsPath is None:
raise ValueError(f">> [Coretex] Parameters compiledModelPath, proveKey and settingsPath have to either all be passed (for verified inference) or none of them (for regula inference)")
raise ValueError(f">> [Coretex] Parameters compiledModelPath, proveKey and settingsPath have to either all be passed (for verified inference) or none of them (for regular inference)")

inferenceDir = folder_manager.createTempFolder(inferenceId)
witnessPath = inferenceDir / "witness.json"
Expand Down

0 comments on commit a9bf76d

Please sign in to comment.