1 # -*- coding: utf-8 -*-
5 from analysis import Analysis
6 from offline_analysis import Offline_Analysis
7 from health_check import Health_Check
9 from flask import Flask
10 from flask_restful import Api
15 with open('indico_api_key.txt', 'r') as key:
16 indicoio.config.api_key = key.read().replace('\n','')
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)