Skip to content

Commit

Permalink
fix(api): add conversion to Windows bundle ep
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 9, 2023
1 parent d244ca9 commit a291dc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def script(obj, optimize=True, _frames_up=0, _rcb=None):
if __name__ == '__main__':
multiprocessing.freeze_support()
try:
from onnx_web.convert.__main__ import main as convert
print("converting models")
convert()

from onnx_web.main import main
app, pool = main()
print("starting workers")
Expand Down

0 comments on commit a291dc8

Please sign in to comment.