Spaces:
Running
Running
fix: wire hub-section visibility
Browse files- bench-app.js +2 -1
bench-app.js
CHANGED
|
@@ -136,7 +136,8 @@ function renderHeader() {
|
|
| 136 |
`Model budget: ~${budgetGB} GB 路 ${pieces.join(' 路 ') || 'using default'} 路 source: ${b.source}`;
|
| 137 |
|
| 138 |
$('output-actions-local').hidden = state.mode !== 'local';
|
| 139 |
-
|
|
|
|
| 140 |
const purgeBtn = $('btn-purge');
|
| 141 |
if (purgeBtn) purgeBtn.hidden = state.mode !== 'hosted';
|
| 142 |
renderHfSection();
|
|
|
|
| 136 |
`Model budget: ~${budgetGB} GB 路 ${pieces.join(' 路 ') || 'using default'} 路 source: ${b.source}`;
|
| 137 |
|
| 138 |
$('output-actions-local').hidden = state.mode !== 'local';
|
| 139 |
+
const hubSection = $('hub-section');
|
| 140 |
+
if (hubSection) hubSection.hidden = state.mode !== 'hosted';
|
| 141 |
const purgeBtn = $('btn-purge');
|
| 142 |
if (purgeBtn) purgeBtn.hidden = state.mode !== 'hosted';
|
| 143 |
renderHfSection();
|