8 lines
No EOL
180 B
Python
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) |