Skip to main content

Table 4 Key components of the flask web framework [72, 73]

From: Smart decision support system for keratoconus severity staging using corneal curvature and thinnest pachymetry indices

Component

Description

Views

A class that allows for the creation of several instances with varying arguments. It can be utilized to modify the behaviour of the view. In the current prototype, this class is connected to the app.route decorator that loads the required data onto a web page and displays it

Routing URLs

It associates URLs with operations like serving pages or data. The created prototype makes use of static route URLs. However, more sophisticated applications can also make use of dynamic route URLs

Statics

A subdirectory contains the application's JavaScript and cascading style sheets (CSS). As a result, users can access these files using the secure HTTP extension (HTTPS) and the Hypertext Transfer Protocol

Templates

Provides various types of data files, including photos, Java Scripts, or cascading style sheets (CSS). It offers static file management [74, 75]. The current prototype also makes use of Bootstrap to adjust the webpages to fit different screen sizes

Model

Flask can be used with and without database. In this prototype, the SQLite database is employed to temporarily store the user inputs and the relevant predictions together with the user's access credentials