multimodalart HF Staff commited on
Commit
e65c775
·
verified ·
1 Parent(s): dfc6996

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +17 -0
index.html CHANGED
@@ -920,7 +920,13 @@
920
  this.isGenerating = false;
921
  this.stopFrameExtraction();
922
  this.stopRecording();
 
 
923
  this.updateUI();
 
 
 
 
924
  };
925
 
926
  } catch (error) {
@@ -1312,6 +1318,17 @@
1312
  const btn = document.getElementById('startStopBtn');
1313
  btn.textContent = this.isGenerating ? 'Stop Generation' : 'Start Generation';
1314
  btn.className = this.isGenerating ? 'btn btn-danger' : 'btn btn-primary';
 
 
 
 
 
 
 
 
 
 
 
1315
  },
1316
 
1317
  showError(message) {
 
920
  this.isGenerating = false;
921
  this.stopFrameExtraction();
922
  this.stopRecording();
923
+ this.stopPlaybackLoop();
924
+ this.ws = null;
925
  this.updateUI();
926
+
927
+ // Update status pill
928
+ document.getElementById('statusPill').className = 'status-pill status-disconnected';
929
+ document.getElementById('statusPill').textContent = 'Disconnected';
930
  };
931
 
932
  } catch (error) {
 
1318
  const btn = document.getElementById('startStopBtn');
1319
  btn.textContent = this.isGenerating ? 'Stop Generation' : 'Start Generation';
1320
  btn.className = this.isGenerating ? 'btn btn-danger' : 'btn btn-primary';
1321
+
1322
+ // Update mode buttons
1323
+ const textBtn = document.getElementById('textModeBtn');
1324
+ const videoBtn = document.getElementById('videoModeBtn');
1325
+ const webcamBtn = document.getElementById('webcamModeBtn');
1326
+
1327
+ if (textBtn && videoBtn && webcamBtn) {
1328
+ textBtn.disabled = this.isGenerating;
1329
+ videoBtn.disabled = this.isGenerating;
1330
+ webcamBtn.disabled = this.isGenerating;
1331
+ }
1332
  },
1333
 
1334
  showError(message) {