()
| 6 | |
| 7 | @app.route('/', methods=['GET']) |
| 8 | def index(): |
| 9 | # owing to the Singleton Pattern can make model loading ahead, |
| 10 | # so let predictors load model before loading page completed. |
| 11 | RegressionPredictor(), CNNPredictor() |
| 12 | |
| 13 | return render_template('index.html') |
| 14 | |
| 15 | |
| 16 | @app.route('/predict', methods=['POST']) |
nothing calls this directly
no test coverage detected