Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Apr 15, 2018
1 parent 600292c commit dc53257
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Binary file removed application/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed application/__pycache__/gui.cpython-36.pyc
Binary file not shown.
Binary file removed application/__pycache__/utils.cpython-36.pyc
Binary file not shown.
Binary file removed application/__pycache__/web.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion application/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def provide_gui(application):
index.html page.
"""
title = 'Topics Explorer'
icon = str(pathlib.Path('static', 'img', 'page_icon.png'))
icon = str(pathlib.Path('application', 'static', 'img', 'page_icon.png'))
width = 1200
height = 660

Expand Down
4 changes: 2 additions & 2 deletions application/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


TEMPDIR = tempfile.mkdtemp() # Storing logfile, dumping temporary data, etc.
app = application.config.create_app() # Creating the Flask app
app, bokeh_resources = application.config.create_app() # Creating the app


@app.route('/')
Expand Down Expand Up @@ -51,7 +51,7 @@ def stream_template(template_name, **context):
app.update_template_context(context)
t = app.jinja_env.get_template(template_name)
return t.stream(context)

stream = flask.stream_with_context(modeling.create_model())
return flask.Response(stream_template('modeling.html', info=stream))

Expand Down
2 changes: 1 addition & 1 deletion topicsexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument('--browser', action='store_true',
help="Opens the application in the standard browser.")
help="Opens the UI in the standard browser.")

args = vars(parser.parse_args())

Expand Down

0 comments on commit dc53257

Please sign in to comment.