Coverage for application/web.py : 94%
![Show keyboard shortcuts](keybd_closed.png)
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
def index(): """ Renders the main page, and unlinks the content (if any) in the temporary folders. """
def help(): """ Renders the help page. """
def modeling(): """ Streams the modeling page, printing useful information to the UI. The generated data will be dumped into a tempdir (specified above). """
def model(): """ Loads the dumped data, deletes the temporary data, and renders the model page. """
def download(): """ Sends the ZIP archive. """ return flask.send_file(str(pathlib.Path(archivedir, "topicmodeling.zip")))
def handle_http_exception(e): """ Handles any HTTP Exception, shows a Bootstrap modal with the error message and renders the index.html again. """ return flask.render_template("index.html", http="error", error_message=e)
def add_header(r): """ Clears the cache after a request. """ |