diff --git a/src/App.jsx b/src/App.jsx index 9f1e20a..d65bd0c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useMemo, useState } from 'react'; +import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import * as tf from '@tensorflow/tfjs'; const statusLabel = (performance, threshold) => (performance >= threshold ? 'Passed' : 'Not passed'); @@ -9,38 +9,79 @@ const round = (value, decimals = 1) => { return Math.round(value * factor) / factor; }; -const Section = ({ id, title, description, isOpen, onToggle, children }) => ( -
- + ) : null} + + + {!collapsible || isOpen ? ( +
+ {children} +
+ ) : null} - - {isOpen ? '-' : '+'} - - - {isOpen ?
{children}
: null} -
-); + + ); +}; const SelectField = ({ id, label, options, value, onChange, required }) => ( -