thesis-prediction-ml/rm_clasificationmodel/server.py
shoney.arickathil b013762aae add helper class
2023-07-04 15:51:06 +02:00

8 lines
No EOL
180 B
Python

from bottle import route, run
from predict import *
@route('/<input_line>')
def index(input_line):
return {'result': predict(input_line, 10)}
run(host='localhost', port=5533)