Skip to content

Commit 0d9fc7e

Browse files
committed
Use templates and static in relative path
1 parent 840a7e2 commit 0d9fc7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simple_tensorflow_serving/server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class WsgiApp:
142142

143143
def __init__(self, args):
144144
self.args = args
145-
#self.app = Flask("simple_tensorlow_serving", template_folder='templates', static_folder="static")
146-
self.app = Flask("simple_tensorlow_serving")
145+
#self.app = Flask("simple_tensorlow_serving")
146+
self.app = Flask("simple_tensorlow_serving", template_folder=os.path.join(os.path.dirname(os.path.abspath(__file__)), "templates"), static_folder=os.path.join(os.path.dirname(os.path.abspath(__file__)), "static"))
147147
#self.app.config["EXPLAIN_TEMPLATE_LOADING"] = True
148148
self.manager = InferenceServiceManager(args)
149149

0 commit comments

Comments
 (0)