trenden commited on
Commit
d9bc3df
·
verified ·
1 Parent(s): d8922f3

Upload app/run.py

Browse files
Files changed (1) hide show
  1. app/run.py +14 -0
app/run.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from pathlib import Path
3
+
4
+ # Add parent directory to PYTHONPATH
5
+ sys.path.append(str(Path(__file__).resolve().parent.parent))
6
+
7
+ from app import ModelAPI
8
+
9
+ api = ModelAPI(
10
+ host = "0.0.0.0",
11
+ port = 6500
12
+ )
13
+
14
+ api.run()