codex-repair commited on
Commit
84d024f
·
1 Parent(s): d494570

Keep VisA deployment scoped to startup fix

Browse files
.hyperview/extensions/manufacturing-readout/panel.js CHANGED
@@ -18,6 +18,9 @@ const colors = {
18
  goodBg: "#132018",
19
  accent: "#8fb8ff",
20
  error: "#fca5a5",
 
 
 
21
  };
22
 
23
  function pretty(value) {
@@ -482,6 +485,7 @@ export default function ManufacturingPanel() {
482
  const models = normalizeModels(props.models);
483
  const examples = Array.isArray(props.examples) ? props.examples : [];
484
  const primaryExample = examples.find((item) => item.id === "fryum") || examples[0] || null;
 
485
  const [loadingKey, setLoadingKey] = React.useState(null);
486
  const [panelError, setPanelError] = React.useState(null);
487
  const [activeChoice, setActiveChoice] = React.useState(null);
@@ -600,6 +604,24 @@ export default function ManufacturingPanel() {
600
  panelError,
601
  )
602
  : null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
603
  React.createElement(StrengthTable, { rows: Array.isArray(props.strengthRows) ? props.strengthRows : [] }),
604
  ),
605
  );
 
18
  goodBg: "#132018",
19
  accent: "#8fb8ff",
20
  error: "#fca5a5",
21
+ warningBg: "#3b2f12",
22
+ warningBorder: "#92400e",
23
+ warningText: "#fde68a",
24
  };
25
 
26
  function pretty(value) {
 
485
  const models = normalizeModels(props.models);
486
  const examples = Array.isArray(props.examples) ? props.examples : [];
487
  const primaryExample = examples.find((item) => item.id === "fryum") || examples[0] || null;
488
+ const warnings = Array.isArray(props.warnings) ? props.warnings : [];
489
  const [loadingKey, setLoadingKey] = React.useState(null);
490
  const [panelError, setPanelError] = React.useState(null);
491
  const [activeChoice, setActiveChoice] = React.useState(null);
 
604
  panelError,
605
  )
606
  : null,
607
+ warnings.map((warning, index) =>
608
+ React.createElement(
609
+ "div",
610
+ {
611
+ key: index,
612
+ style: {
613
+ border: `1px solid ${colors.warningBorder}`,
614
+ background: colors.warningBg,
615
+ color: colors.warningText,
616
+ borderRadius: 5,
617
+ padding: 8,
618
+ fontSize: 11,
619
+ lineHeight: 1.35,
620
+ },
621
+ },
622
+ warning,
623
+ ),
624
+ ),
625
  React.createElement(StrengthTable, { rows: Array.isArray(props.strengthRows) ? props.strengthRows : [] }),
626
  ),
627
  );
README.md CHANGED
@@ -63,4 +63,6 @@ The Docker image installs the bundled latest HyperView wheel for this repo and
63
  uses HyperView's public dataset, UI, and panel command APIs. Hyper3-CLIP loads
64
  through the public `hyper-models` provider catalog entry for the gated
65
  `hyper3labs/hyper3-clip-v0.5` model repository. The Space needs an `HF_TOKEN`
66
- secret with access to that model; startup fails if the model cannot be loaded.
 
 
 
63
  uses HyperView's public dataset, UI, and panel command APIs. Hyper3-CLIP loads
64
  through the public `hyper-models` provider catalog entry for the gated
65
  `hyper3labs/hyper3-clip-v0.5` model repository. The Space needs an `HF_TOKEN`
66
+ secret with access to that model. If unavailable, the Space can start with a
67
+ clearly labeled CLIP fallback unless `HYPERVIEW_ALLOW_CANDIDATE_FALLBACK=0` is
68
+ set.