diff --git a/tomotopy/viewer/__main__.py b/tomotopy/viewer/__main__.py index 7e0277c..591918a 100644 --- a/tomotopy/viewer/__main__.py +++ b/tomotopy/viewer/__main__.py @@ -3,12 +3,13 @@ def main(args): model = tp.load_model(args.model) - open_viewer(model, args.host, args.port, args.browser_title, args.model + '.json', read_only=args.read_only) + open_viewer(model, args.host, args.port, args.root_path, args.browser_title, args.model + '.json', read_only=args.read_only) if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('model') + parser.add_argument('--root-path', default='/') parser.add_argument('--browser-title') parser.add_argument('--host', default='localhost') parser.add_argument('-p', '--port', type=int, default=9999) diff --git a/tomotopy/viewer/template.html b/tomotopy/viewer/template.html index 1459f28..da002e6 100644 --- a/tomotopy/viewer/template.html +++ b/tomotopy/viewer/template.html @@ -61,23 +61,23 @@
@@ -233,7 +233,7 @@

Filtered documents ({{filtered_docs}} / {{total_docs}})

{% elif action == 'topic' %}
-

Top words in each topic

+

Top words in each topic

{% set col = "col-md-6" if top1_topic_dist_by_metadata else "" %}
-

Distribution of Document Top1 Topics

+

Distribution of Document Top1 Topics