Support tab (agents:support on a range with a question, instructions/support.md, its answer in labeling/auto/support/); the weather read from data/<STATION>/weather/ (pumped), no call to MeteoSwiss from the app; plots in mm (corr_x_mm, corr_y_mm); analyst instructions: the weather pumped, the targets in mm and their distance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
60d10a282c
commit
161fb0212f
12 files changed
+414
-104
No files matched your search
+17
-12
@@ -50,7 +50,8 @@ function Header({ mobile, desktop, toggle }) {
|
||||
|
||||
// The analyses of the Data page (labeling/auto/analyses/), read again every 3 s: one folder per station, open by default if
|
||||
// it has one running, and inside one analysis per range (a green tick: its labels validated); a click opens Data on its
|
||||
// station and its days, and shows its report there
|
||||
// station and its days, and shows its report there. kind "support": the requests of the Support tab (labeling/auto/support/),
|
||||
// the same without labels to validate
|
||||
// The range of an analysis on two lines, too wide for the sidebar on one: the days "04.11 – 07.11" ("01.11" within the day),
|
||||
// under them the hours "21:12 – 14:12" (UTC)
|
||||
const dayMonth = t => `${t.slice(8, 10)}.${t.slice(5, 7)}`, hour = t => t.slice(11, 16);
|
||||
@@ -60,10 +61,10 @@ const STATE_COLOR = { done: "teal", error: "red", interrupted: "gray" };
|
||||
// The state: a spinning wheel while running, otherwise a coloured dot (its name in the tooltip)
|
||||
const Dot = ({ state }) => (state === "running" ? <Loader size={10} color="orange" />
|
||||
: <Tooltip label={state}><ColorSwatch size={8} color={`var(--mantine-color-${STATE_COLOR[state] || "gray"}-6)`} withShadow={false} /></Tooltip>);
|
||||
function Analyses({ open }) {
|
||||
const [list, setList] = useState([]);
|
||||
function Analyses({ kind = "analyses", open }) {
|
||||
const [list, setList] = useState([]), labels = kind === "analyses";
|
||||
useEffect(() => {
|
||||
const read = () => fetch("/api/analyses").then(r => r.ok && r.json()).then(l => l && setList(l)).catch(() => {}); // silently: every 3 s
|
||||
const read = () => fetch(`/api/${kind}`).then(r => r.ok && r.json()).then(l => l && setList(l)).catch(() => {}); // silently: every 3 s
|
||||
read();
|
||||
const timer = setInterval(read, 3000);
|
||||
return () => clearInterval(timer);
|
||||
@@ -71,19 +72,19 @@ function Analyses({ open }) {
|
||||
if (!list.length) return null;
|
||||
const stations = [...new Set(list.map(a => a.station))].sort();
|
||||
return <>
|
||||
<Text size="xs" fw={700} tt="uppercase" c="dimmed" px="sm" pt="lg" pb="xs">Analyses (UTC)</Text>
|
||||
<Text size="xs" fw={700} tt="uppercase" c="dimmed" px="sm" pt="lg" pb="xs">{labels ? "Analyses" : "Support"} (UTC)</Text>
|
||||
{stations.map(st => {
|
||||
const its = list.filter(a => a.station === st), busy = its.some(a => a.state === "running");
|
||||
const validated = its.filter(a => a.validated).length;
|
||||
// the chevron of the folder stays Mantine's: a rightSection would take its place, and rotate with it
|
||||
return (
|
||||
<NavLink key={st} defaultOpened={busy} childrenOffset={22} leftSection={<IconFolder size={16} />}
|
||||
label={<Group gap={6} wrap="nowrap">{st}<Tooltip label={`${validated} of ${its.length} validated`}><Text span size="xs" c="dimmed">{validated}/{its.length}</Text></Tooltip>{busy && <Loader size={10} color="orange" />}</Group>}>
|
||||
label={<Group gap={6} wrap="nowrap">{st}{labels && <Tooltip label={`${validated} of ${its.length} validated`}><Text span size="xs" c="dimmed">{validated}/{its.length}</Text></Tooltip>}{busy && <Loader size={10} color="orange" />}</Group>}>
|
||||
{its.map(a => (
|
||||
<NavLink key={a.name} py={4} onClick={() => open(a)} leftSection={<Dot state={a.state} />}
|
||||
rightSection={a.validated ? <Tooltip label={`labels validated ${a.validated}`}>
|
||||
rightSection={labels && (a.validated ? <Tooltip label={`labels validated ${a.validated}`}>
|
||||
<IconCircleCheck size={14} color="var(--mantine-color-green-6)" /></Tooltip>
|
||||
: a.state === "done" && <Tooltip label="labels to validate"><IconCircleDashed size={14} color="var(--mantine-color-dimmed)" /></Tooltip>}
|
||||
: a.state === "done" && <Tooltip label="labels to validate"><IconCircleDashed size={14} color="var(--mantine-color-dimmed)" /></Tooltip>)}
|
||||
label={<Text size="xs" ff="monospace" style={{ whiteSpace: "nowrap" }}>{days(a)}</Text>}
|
||||
description={<Text span size="xs" ff="monospace" c="dimmed" style={{ whiteSpace: "nowrap" }}>{hours(a)}</Text>} />
|
||||
))}
|
||||
@@ -104,6 +105,7 @@ function Sidebar({ page, selection, close, open }) {
|
||||
href={address(n, selection)} />
|
||||
))}
|
||||
<Analyses open={a => { close(); open(a); }} />
|
||||
<Analyses kind="support" open={a => { close(); open(a, "support"); }} />
|
||||
</ScrollArea>
|
||||
</AppShell.Navbar>
|
||||
);
|
||||
@@ -114,6 +116,7 @@ export default function App() {
|
||||
const [mobile, { toggle: toggleMobile, close: closeMobile }] = useDisclosure(false);
|
||||
const [desktop, { toggle: toggleDesktop }] = useDisclosure(true);
|
||||
const [analysis, setAnalysis] = useState(null); // the analysis whose report Data shows
|
||||
const [support, setSupport] = useState(null); // the support request whose answer Data shows
|
||||
|
||||
useEffect(() => {
|
||||
const follow = () => setPlace(readAddress());
|
||||
@@ -123,11 +126,12 @@ export default function App() {
|
||||
|
||||
// the same address again (Load): read again, a new selection loads the data again
|
||||
const choose = s => { const a = address(page, s); if (location.hash === a) setPlace(readAddress()); else location.hash = a; };
|
||||
// An analysis of the sidebar: Data on its station, days that cover its range (unless the range shown already covers them)
|
||||
function openAnalysis(a) {
|
||||
// An analysis (or a support request) of the sidebar: Data on its station, days that cover its range (unless the range
|
||||
// shown already covers them)
|
||||
function openAnalysis(a, kind) {
|
||||
const s = selection, covers = s.station === a.station && s.start <= a.start.slice(0, 10) && a.end < s.end;
|
||||
const end = new Date(Date.parse(a.end.slice(0, 10)) + 864e5).toISOString().slice(0, 10);
|
||||
setAnalysis(a.name);
|
||||
(kind === "support" ? setSupport : setAnalysis)(a.name);
|
||||
location.hash = address("data", covers ? s : { station: a.station, start: a.start.slice(0, 10), end });
|
||||
}
|
||||
return (
|
||||
@@ -138,7 +142,8 @@ export default function App() {
|
||||
<AppShell.Main bg="var(--mantine-color-default-hover)">
|
||||
<Suspense fallback={<Loader m="xl" />}>
|
||||
{page === "stations" ? <Stations selection={selection} />
|
||||
: <Data selection={selection} choose={choose} analysis={analysis} setAnalysis={setAnalysis} />}
|
||||
: <Data selection={selection} choose={choose} analysis={analysis} setAnalysis={setAnalysis}
|
||||
support={support} setSupport={setSupport} />}
|
||||
</Suspense>
|
||||
</AppShell.Main>
|
||||
</AppShell>
|
||||
|
||||
+42
-29
@@ -10,7 +10,8 @@ import { StationImages } from "./Images.jsx";
|
||||
// Data, the curve viewer and the labelling: one plot at the start, others to add or remove,
|
||||
// all aligned in time; under them the labels: Detectors (the events of the journal), LLM (labeling/auto/, read-only)
|
||||
// or Analysis (the same, to edit, delete; dragging on the bar selects a range, which the analyst diagnoses and
|
||||
// labels; elsewhere, dragging zooms); a click opens a
|
||||
// labels), or Support (LLM's labels; dragging selects a range, on which the support answers a question); elsewhere,
|
||||
// dragging zooms; a click opens a
|
||||
// label and highlights it. On the right, the images of the station, and under them the diagnostic settings.
|
||||
const FAMILIES = { "Visibility": "#8ec5e8", "Obstruction": "#f0b072", "Thermal displacement": "#f08a7e", "Displacement": "#b39ddb",
|
||||
"Target issue": "#e6d46a", "No data": "#c4c4be", "None": "#a8d5a2" };
|
||||
@@ -19,8 +20,9 @@ const FAMILY_NAME = f => (f === "None" ? "None (curves intact)" : f);
|
||||
const FAMILY_CHOICES = [{ value: "", label: "(choose a family)" },
|
||||
...Object.keys(FAMILIES).filter(f => f !== "None").map(f => ({ value: f, label: f }))];
|
||||
// LLM and Analysis: the same labels, labeling/auto/; LLM reads them, Analysis edits, deletes them, and has the analyst make
|
||||
// some on a range (app/server/analysis.py)
|
||||
const SOURCES = [{ value: "detectors", label: "Detectors" }, { value: "auto", label: "LLM" }, { value: "analysis", label: "Analysis" }];
|
||||
// some on a range (app/server/analysis.py); Support reads them, and asks the support a question on a range (support.py)
|
||||
const SOURCES = [{ value: "detectors", label: "Detectors" }, { value: "auto", label: "LLM" }, { value: "analysis", label: "Analysis" },
|
||||
{ value: "support", label: "Support" }];
|
||||
const GREY = "#b0b0aa", BLUE = "#2a78d6", LANE = 26, HEIGHT = 330; // LANE: px per row of labels; HEIGHT: of a plot
|
||||
const color = l => FAMILIES[l.family] || GREY;
|
||||
const readable = s => s.slice(0, 16).replace("T", " ");
|
||||
@@ -40,7 +42,7 @@ const wrap = s => s.replace(/(.{1,80})(\s|$)/g, "$1<br>"); // the tooltip: line
|
||||
|
||||
const DETECTED = Object.keys(FAMILIES).filter(f => f !== "None"); // the families of the detectors (categories.py)
|
||||
|
||||
export default function Data({ selection, choose, analysis, setAnalysis }) {
|
||||
export default function Data({ selection, choose, analysis, setAnalysis, support, setSupport }) {
|
||||
const [data, setData] = useState(null), [loading, setLoading] = useState(false), [wide, setWide] = useState(false);
|
||||
const left = useRef(), [moment, setMoment] = useState(null); // moment: where to set the images (the start of the clicked event)
|
||||
// The diagnostic settings, under the image (Detectors and LLM): families shown (filter of the page); targets kept ("":
|
||||
@@ -73,7 +75,7 @@ export default function Data({ selection, choose, analysis, setAnalysis }) {
|
||||
{data && <TargetFilter d={data} hidden={hidden} setHidden={setHidden} />}
|
||||
{data && <Curves key={`${station}${start}${end}`} selection={selection} d={data} setImage={(t, nearest) => setMoment({ t, nearest })}
|
||||
source={source} setSource={setSource} families={families} targets={targets} focus={focus} hidden={hidden}
|
||||
analysis={analysis} setAnalysis={setAnalysis} />}
|
||||
analysis={analysis} setAnalysis={setAnalysis} support={support} setSupport={setSupport} />}
|
||||
</Stack>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={{ base: 12, lg: wide ? 7 : 4 }}>
|
||||
@@ -157,8 +159,9 @@ const Field = ({ name, children }) => (
|
||||
const mentions = (text, s) => new RegExp(`(^|[^\\w])${s.replace(/[^\w]/g, "\\$&")}(?![\\w])`).test(text);
|
||||
const sensorsOf = (l, names) => l.sensors ?? names.filter(s => mentions(l.description, s));
|
||||
|
||||
// analysis: the folder of the analysis shown, held by App (the sidebar opens one)
|
||||
function Curves({ selection: { station, start, end }, d, setImage, source, setSource, families, targets, focus, hidden, analysis, setAnalysis }) {
|
||||
// analysis, support: the folder of the analysis, of the support request shown, held by App (the sidebar opens one)
|
||||
function Curves({ selection: { station, start, end }, d, setImage, source, setSource, families, targets, focus, hidden, analysis, setAnalysis,
|
||||
support, setSupport }) {
|
||||
const { A, B, T, plots: PLOTS } = d;
|
||||
const plotIndex = (title, otherwise) => { const i = PLOTS.findIndex(p => p.title === title); return i < 0 ? otherwise : i; };
|
||||
const [Plotly, setPlotly] = useState(null), [ready, setReady] = useState(false);
|
||||
@@ -171,7 +174,8 @@ function Curves({ selection: { station, start, end }, d, setImage, source, setSo
|
||||
const labels = useMemo(() => allLabels.filter(x => x.start < B && x.end > A
|
||||
&& (!DETECTED.includes(x.family) || families.includes(x.family))), [allLabels, families]);
|
||||
const detect = source === "detectors", readOnly = source !== "analysis"; // only Analysis writes
|
||||
const folder = source === "analysis" ? "auto" : source; // the labeling/ folder of the labels
|
||||
const asking = source === "support", select = asking || !readOnly; // select: dragging on the bar selects a range
|
||||
const folder = "auto"; // the labeling/ folder of the labels
|
||||
// figs: id -> div of the plot; drawn: id -> plot it shows; viewKey: the range and the width where the text of the labels was truncated
|
||||
const figs = useRef({}), drawn = useRef({}), nextId = useRef(2), bar = useRef(), sorted = useRef([]), viewKey = useRef(""), current = useRef({});
|
||||
// the focus: the sensors of the open event (none: all, as for No data); shown, their key
|
||||
@@ -290,7 +294,7 @@ function Curves({ selection: { station, start, end }, d, setImage, source, setSo
|
||||
? l.references.map(s => s + " (ref.)").join(", ") : "All sensors")
|
||||
: (l.family ? `<b>${FAMILY_NAME(l.family)}</b><br>` : "") + wrap(l.description))),
|
||||
hovertemplate: "%{customdata}<extra></extra>" }],
|
||||
{ ...skin(c), height: 40 + LANE * n, dragmode: readOnly ? "zoom" : "select", selectdirection: "h", hovermode: "closest", plot_bgcolor: c.bg, showlegend: false,
|
||||
{ ...skin(c), height: 40 + LANE * n, dragmode: select ? "select" : "zoom", selectdirection: "h", hovermode: "closest", plot_bgcolor: c.bg, showlegend: false,
|
||||
margin: { ...margin(), l: Math.max(...gs.map(g => g._fullLayout._size.l)), r: Math.max(...gs.map(g => g._fullLayout._size.r)) },
|
||||
xaxis: { type: "date", range: f.xaxis.range.slice(), showgrid: false, ticks: "", color: c.text },
|
||||
yaxis: { range: [n - 0.5, -0.5], fixedrange: true, showticklabels: false, showgrid: false, zeroline: false },
|
||||
@@ -323,8 +327,8 @@ function Curves({ selection: { station, start, end }, d, setImage, source, setSo
|
||||
|
||||
useEffect(() => { if (ready) drawPlots().then(() => align(bar.current)); }, [views]);
|
||||
useEffect(() => { if (ready) drawBar(); }, [ready, labels]);
|
||||
// Drag on the bar: select a range (Analysis), otherwise zoom in time
|
||||
useEffect(() => { if (ready) Plotly.relayout(bar.current, { dragmode: readOnly ? "zoom" : "select", selections: [] }); }, [ready, readOnly]);
|
||||
// Drag on the bar: select a range (Analysis, Support), otherwise zoom in time
|
||||
useEffect(() => { if (ready) Plotly.relayout(bar.current, { dragmode: select ? "select" : "zoom", selections: [] }); }, [ready, select]);
|
||||
useEffect(() => { if (ready) drawPlots(true).then(drawBar); }, [dark]);
|
||||
useEffect(() => { if (ready) drawPlots(true); }, [shown, hidden]);
|
||||
useEffect(() => { if (ready) plotDivs().forEach(g => Plotly.relayout(g, { shapes: zones() })); }, [ready, labels, choice, opened]);
|
||||
@@ -373,10 +377,12 @@ function Curves({ selection: { station, start, end }, d, setImage, source, setSo
|
||||
return true;
|
||||
}
|
||||
|
||||
// The analyst on the range (Analysis, hints optional), or the support (Support, a question)
|
||||
async function runAnalysis() {
|
||||
const r = await call("/api/analyses", "POST", { station, start: choice[0], end: choice[1], hints });
|
||||
const r = await call(asking ? "/api/support" : "/api/analyses", "POST",
|
||||
{ station, start: choice[0], end: choice[1], ...(asking ? { question: hints } : { hints }) });
|
||||
if (!r) return; // nothing is lost: the hints and the range stay in the page
|
||||
setAnalysis(r.name); setHints("");
|
||||
(asking ? setSupport : setAnalysis)(r.name); setHints("");
|
||||
await Plotly.relayout(bar.current, { selections: [] });
|
||||
setChoice(null);
|
||||
}
|
||||
@@ -478,13 +484,18 @@ function Curves({ selection: { station, start, end }, d, setImage, source, setSo
|
||||
</Card>
|
||||
)}
|
||||
</div>
|
||||
{!readOnly && <>
|
||||
<Text size="sm">{choice ? `${readable(choice[0])} → ${readable(choice[1])} UTC` : "Drag on the label bar to select the range to analyze."}</Text>
|
||||
<Textarea autosize minRows={2} placeholder="Hints for the analyst (optional): what you saw, what to look at"
|
||||
value={hints} onChange={e => setHints(e.currentTarget.value)} />
|
||||
<Group><Button onClick={runAnalysis} disabled={!(choice && choice[0] < choice[1])}>Analyze the range</Button></Group>
|
||||
{select && <>
|
||||
<Text size="sm">{choice ? `${readable(choice[0])} → ${readable(choice[1])} UTC`
|
||||
: `Drag on the label bar to select the range ${asking ? "of your question" : "to analyze"}.`}</Text>
|
||||
<Textarea autosize minRows={2} value={hints} onChange={e => setHints(e.currentTarget.value)}
|
||||
placeholder={asking ? "Your question to the support: what you want to know about this range, or what to answer a client"
|
||||
: "Hints for the analyst (optional): what you saw, what to look at"} />
|
||||
<Group><Button onClick={runAnalysis} disabled={!(choice && choice[0] < choice[1]) || (asking && !hints.trim())}>
|
||||
{asking ? "Ask the support" : "Analyze the range"}</Button></Group>
|
||||
</>}
|
||||
{analysis && <Analysis key={analysis} name={analysis} dark={dark} done={() => setRev(r => r + 1)} close={() => setAnalysis(null)} />}
|
||||
{support && <Analysis kind="support" key={`support/${support}`} name={support} dark={dark} done={() => setRev(r => r + 1)}
|
||||
close={() => setSupport(null)} />}
|
||||
</Stack>
|
||||
</Card>
|
||||
);
|
||||
@@ -516,14 +527,15 @@ const STATE_COLOR = { running: "blue", done: "teal", error: "red", interrupted:
|
||||
// An analysis of the Analysis tab: its thread (read again every 3 s while it works), its report, and a message to the
|
||||
// analyst, which resumes its session; at the end of each turn, the labels are read again. A finished analysis can be
|
||||
// optimized (/improve of Optimizer on the range of the analysis, then the tool-builder): the thread of the session, then
|
||||
// its summaries under the report
|
||||
function Analysis({ name, dark, done, close }) {
|
||||
// its summaries under the report. kind "support": a request of the Support tab, the same without labels: its question,
|
||||
// its thread, its answer, the messages
|
||||
function Analysis({ kind = "analyses", name, dark, done, close }) {
|
||||
const [a, setA] = useState(null), [turn, setTurn] = useState(0), [text, setText] = useState("");
|
||||
const box = useRef(), loaded = !!a;
|
||||
useEffect(() => { if (loaded) box.current?.scrollIntoView({ behavior: "smooth", block: "start" }); }, [name, loaded]); // opened: it is in view
|
||||
useEffect(() => {
|
||||
let alive = true, timer;
|
||||
const read = () => call(`/api/analyses/${name}`).then(r => {
|
||||
const read = () => call(`/api/${kind}/${name}`).then(r => {
|
||||
if (!alive || !r) return;
|
||||
setA(r);
|
||||
if (r.state === "running" || r.optimization?.state === "running") timer = setTimeout(read, 3000);
|
||||
@@ -533,7 +545,7 @@ function Analysis({ name, dark, done, close }) {
|
||||
return () => { alive = false; clearTimeout(timer); };
|
||||
}, [name, turn]);
|
||||
async function send() {
|
||||
if (await call(`/api/analyses/${name}/message`, "POST", { text }) == null) return; // the text stays in the field
|
||||
if (await call(`/api/${kind}/${name}/message`, "POST", { text }) == null) return; // the text stays in the field
|
||||
setText(""); setTurn(t => t + 1);
|
||||
}
|
||||
async function optimize() {
|
||||
@@ -543,35 +555,36 @@ function Analysis({ name, dark, done, close }) {
|
||||
if (await call(`/api/analyses/${name}/validate`, "POST") != null) { setTurn(t => t + 1); done(); }
|
||||
}
|
||||
if (!a) return <Loader size="sm" />;
|
||||
const d = a.request, o = a.optimization, busy = a.state === "running", optimizing = o?.state === "running";
|
||||
const d = a.request, o = a.optimization, busy = a.state === "running", optimizing = o?.state === "running", labels = kind === "analyses";
|
||||
const end = new Date(Date.parse(d.end.slice(0, 10)) + 864e5).toISOString().slice(0, 10);
|
||||
return (
|
||||
<Card withBorder ref={box}>
|
||||
<Stack gap="xs">
|
||||
<Group justify="space-between">
|
||||
<Group gap="xs">
|
||||
<Title order={5}>Analysis {readable(d.start)} → {readable(d.end)} UTC</Title>
|
||||
<Title order={5}>{labels ? "Analysis" : "Support"} {readable(d.start)} → {readable(d.end)} UTC</Title>
|
||||
<Badge color={STATE_COLOR[a.state] || "gray"}>{a.state}</Badge>
|
||||
{busy && <Loader size="xs" />}
|
||||
</Group>
|
||||
<Group gap="xs">
|
||||
{a.validated ? <Badge color="green" variant="light">labels validated {a.validated}</Badge>
|
||||
{!labels ? null : a.validated ? <Badge color="green" variant="light">labels validated {a.validated}</Badge>
|
||||
: a.state === "done" && <Tooltip label="I agree with all the labels of this analysis: they become reference labels">
|
||||
<Button size="xs" color="green" variant="light" onClick={validate} disabled={optimizing}>Validate labels</Button></Tooltip>}
|
||||
{a.state === "done" && <Tooltip label="Improve the detectors (Optimizer), then the reading tools (tool-builder), from this analysis">
|
||||
{labels && a.state === "done" && <Tooltip label="Improve the detectors (Optimizer), then the reading tools (tool-builder), from this analysis">
|
||||
<Button size="xs" variant="light" onClick={optimize} disabled={optimizing}>Optimize the detectors</Button></Tooltip>}
|
||||
<ActionIcon variant="subtle" color="gray" aria-label="Close the report" onClick={close}><IconX size={16} /></ActionIcon>
|
||||
</Group>
|
||||
</Group>
|
||||
{d.hints && <Text size="sm" c="dimmed">Hints: {d.hints}</Text>}
|
||||
{d.question && <Text size="sm" c="dimmed" style={{ whiteSpace: "pre-wrap" }}>Question: {d.question}</Text>}
|
||||
{a.state === "interrupted" && <Text size="sm" c="orange">Stopped with the server before the end.{a.dialogue
|
||||
? " Its session is kept: write “continue” below to resume it where it left off." : ""}</Text>}
|
||||
{a.submitted !== null && a.state === "done" && <Text size="sm">{a.submitted} label(s) of this analysis in labeling/auto/{d.station}.jsonl{a.validated ? ", validated" : ", to validate"}.</Text>}
|
||||
{a.report && <Page title="Report" src={`/api/analyses/${name}/report.html?dark=${dark}&v=${a.report}`} />}
|
||||
{a.report && <Page title="Report" src={`/api/${kind}/${name}/report.html?dark=${dark}&v=${a.report}`} />}
|
||||
<Thread lines={a.lines} />
|
||||
{a.dialogue && (
|
||||
<Group align="flex-end" gap="sm" wrap="nowrap">
|
||||
<Textarea autosize minRows={1} style={{ flex: 1 }} placeholder="A question, a correction for the analyst"
|
||||
<Textarea autosize minRows={1} style={{ flex: 1 }} placeholder={`A question, a correction for the ${labels ? "analyst" : "support"}`}
|
||||
value={text} onChange={e => setText(e.currentTarget.value)} />
|
||||
<Button onClick={send} disabled={busy || optimizing || !text.trim()}>Send</Button>
|
||||
</Group>
|
||||
@@ -589,7 +602,7 @@ function Analysis({ name, dark, done, close }) {
|
||||
{o.summary && <Text size="xs" c="dimmed" ff="monospace">python3 detectors/bench/score.py data/{d.station} --labels labeling/auto/{d.station}.jsonl --from {d.start.slice(0, 10)} --to {end}</Text>}
|
||||
</Stack>
|
||||
)}
|
||||
<Text size="xs" c="dimmed">labeling/auto/analyses/{name}/</Text>
|
||||
<Text size="xs" c="dimmed">labeling/auto/{kind}/{name}/</Text>
|
||||
</Stack>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user