|
@@ -6,6 +6,12 @@ from utils import PreProcessing
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
+@app.route('/')
|
|
|
|
|
+def index():
|
|
|
|
|
+ """ Index Web Page
|
|
|
|
|
+ """
|
|
|
|
|
+ return "Modelo Mexico PML Day Ahead Forecast"
|
|
|
|
|
+
|
|
|
@app.route('/predict', methods=['POST'])
|
|
@app.route('/predict', methods=['POST'])
|
|
|
def apicall():
|
|
def apicall():
|
|
|
"""API Call
|
|
"""API Call
|
|
@@ -70,4 +76,4 @@ def bad_request(error=None):
|
|
|
return resp
|
|
return resp
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
|
- app.run()
|
|
|
|
|
|
|
+ app.run(host='0.0.0.0')
|