Skip to content
Snippets Groups Projects

Feature/add auth asr service

Merged Marcin Wątroba requested to merge feature/add_auth_asr_service into main
Viewing commit 694c20b0
Show latest version
3 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -64,4 +64,4 @@ class AsrBaseProcessor(ABC):
@@ -64,4 +64,4 @@ class AsrBaseProcessor(ABC):
app.route("/process_asr", methods=["POST"])(auth.login_required(self.process_request))
app.route("/process_asr", methods=["POST"])(auth.login_required(self.process_request))
app.route("/health_check", methods=["GET"])(self.health_check)
app.route("/health_check", methods=["GET"])(self.health_check)
port = int(os.environ[_SERVICE_PORT]) if _SERVICE_PORT in os.environ else 5000
port = int(os.environ[_SERVICE_PORT]) if _SERVICE_PORT in os.environ else 5000
app.run(debug=True, host="0.0.0.0", port=port)
app.run(debug=True, host="0.0.0.0", port=port, use_reloader=False)