Pijush2023 commited on
Commit
b3b5557
·
verified ·
1 Parent(s): 5101564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ pipe_asr = pipeline(
43
  tokenizer=processor.tokenizer,
44
  feature_extractor=processor.feature_extractor,
45
  max_new_tokens=128,
46
- chunk_length_s=15,
47
  batch_size=16,
48
  torch_dtype=torch_dtype,
49
  device=device,
@@ -52,7 +52,7 @@ pipe_asr = pipeline(
52
 
53
  # Function to reset the state after 10 seconds
54
  def auto_reset_state():
55
- time.sleep(5)
56
  return None, "" # Reset the state and clear input text
57
 
58
  # Function to process audio input and transcribe it
 
43
  tokenizer=processor.tokenizer,
44
  feature_extractor=processor.feature_extractor,
45
  max_new_tokens=128,
46
+ chunk_length_s=7,
47
  batch_size=16,
48
  torch_dtype=torch_dtype,
49
  device=device,
 
52
 
53
  # Function to reset the state after 10 seconds
54
  def auto_reset_state():
55
+ time.sleep(2)
56
  return None, "" # Reset the state and clear input text
57
 
58
  # Function to process audio input and transcribe it