diff --git a/backend/store.py b/backend/store.py index ee66ac4..acbe8ea 100644 --- a/backend/store.py +++ b/backend/store.py @@ -35,7 +35,7 @@ def store(self, feedback_result: FeedbackSchema) -> None: @classmethod def get_logs(cls) -> list: if not os.path.exists(FEEDBACK_DIR): - raise NoDataFound(f"Directory doesn't exist: {FEEDBACK_DIR}") + return [] all_files = [[ os.path.join(subdir[0], file) diff --git a/frontend/public/css/style.css b/frontend/public/css/style.css index e0afea5..fa0d3d0 100644 --- a/frontend/public/css/style.css +++ b/frontend/public/css/style.css @@ -295,7 +295,7 @@ a:hover { position: absolute; margin-left: auto; margin-right: auto; - margin-top: 3px; + margin-top: 0px; left: 0; right: 0; text-align: center; diff --git a/frontend/public/documentation.html b/frontend/public/documentation.html index 4467e2d..3e8d40f 100644 --- a/frontend/public/documentation.html +++ b/frontend/public/documentation.html @@ -62,6 +62,15 @@
Future Plans

FAQ

+ +
+
+ +
What is our first goal?
+Our first step is to collect 1000 annotated logs. This is the estimated amount we need to start producing useful results when training AI. After we reach this goal, we will begin working on a CLI tool that will use the trained data. We will then continue to collect data as 2-3 thousands samples should be needed to get satisfactionary results. +
+
+
What AI model are you using?
diff --git a/frontend/src/app/homepage.cljs b/frontend/src/app/homepage.cljs index feb42d0..06dceb1 100644 --- a/frontend/src/app/homepage.cljs +++ b/frontend/src/app/homepage.cljs @@ -101,12 +101,15 @@ @report-target)) 100)) 100)) (defn render-stats [] - [:div {:id "progressbar"} - [:h5 "Are we there yet?"] - [:div {:id "progressbar-number"} - [:p (progress-width) "%"]] - [:div {:id "progress" - :style {:width (str (progress-width) "%")}}]]) + [:<> + [:div {:id "progressbar"} + [:p {:id "progressbar-number"} (str (progress-width) "%")] + [:div {:id "progress" + :style {:width (str (progress-width) "%")}}] + [:div {:id "progressbar2"} + [:div + [:p "Collected " (:total_reports @backend-stats) " logs from " + [:a {:href "/documentation#goals"} @report-target]]]]]]) (defn render-card [provider url title img text inputs] [:div {:class "card-body"}