From 8ec6228b4c66370affd29aa7ea0b4a36f87978cf Mon Sep 17 00:00:00 2001 From: Leo Jeong <80350771+33tm@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:04:44 -0700 Subject: [PATCH] production server --- api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index 530f17e..0e2923f 100644 --- a/api.py +++ b/api.py @@ -1,4 +1,5 @@ from csv import reader +from waitress import serve from torch import torch, nn from jamo import h2j, j2hcj, j2h from flask import Flask, request @@ -62,4 +63,4 @@ def evaluate(): return " ".join(output) if __name__ == "__main__": - app.run() \ No newline at end of file + serve(app, host="0.0.0.0", port=8080) \ No newline at end of file