Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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(
|
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
|