From 1ce6d4c7d68b562e5bdcbb9487c4ed273798837f Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 23 Sep 2024 21:49:37 -0700 Subject: [PATCH] fix: add template to code --- .gitignore | 6 ++++ templates/index.html | 77 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 templates/index.html diff --git a/.gitignore b/.gitignore index 3927059..198c500 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Ignore everything * +# Ignore .idea +/.idea + # Don't ignore directories, so we can recurse into them !*/ @@ -22,6 +25,9 @@ # Don't ignore Python files in src directory !src/**/*.py +# Don't ignore templates +!templates/**/*.html + # Don't ignore requirements.txt in root !requirements.txt diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..d71c4ca --- /dev/null +++ b/templates/index.html @@ -0,0 +1,77 @@ + + + + + + Model Metrics + + + + + + +
+ +
+ + {% if plot_div %} + {{ plot_div | safe }} + {% else %} +

No data available for the selected model.

+ {% endif %} + + {% if result %} +

Token Statistics:

+
{{ result }}
+ {% endif %} + + \ No newline at end of file