1 # -*- coding: utf-8 -*-
6 from analysis import Analysis
7 from offline_analysis import Offline_Analysis
8 from health_check import Health_Check
10 from flask import Flask
11 from flask_restful import Api
16 indicoio.config.api_key = os.environ['INDICO_API_KEY']
18 api.add_resource(Analysis, '/')
19 api.add_resource(Offline_Analysis, '/offline_analysis')
20 api.add_resource(Health_Check, '/health')
22 if __name__ == '__main__':
23 app.run(host="0.0.0.0", port=8081, debug=False)