filmy commited on
Commit
88aaffc
·
verified ·
1 Parent(s): 9a0b9bd

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -318,10 +318,10 @@ document.addEventListener('DOMContentLoaded', () => {
318
 
319
  const isIdentityEnabled = identifyCheck && identifyCheck.checked;
320
  const maxSpk = isIdentityEnabled ? parseInt(maxSpeakersSelect.value) : 1;
321
-
322
  socket.emit('start_stream', {
323
  url: url,
324
- target_lang: subtitleLangSelect.value,
325
  max_speakers: maxSpk
326
  });
327
  });
 
318
 
319
  const isIdentityEnabled = identifyCheck && identifyCheck.checked;
320
  const maxSpk = isIdentityEnabled ? parseInt(maxSpeakersSelect.value) : 1;
321
+ const targetLang = subtitleLangSelect ? subtitleLangSelect.value : 'ja';
322
  socket.emit('start_stream', {
323
  url: url,
324
+ target_lang: targetLang,
325
  max_speakers: maxSpk
326
  });
327
  });