legusxyz commited on
Commit
7bc406e
·
verified ·
1 Parent(s): 045b9e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -28,12 +28,9 @@ asr_pipeline = pipeline(
28
  model=model,
29
  tokenizer=processor.tokenizer, # Explicitly set the tokenizer from the processor
30
  feature_extractor=processor.feature_extractor, # Set the feature extractor for audio input
31
- device=device,
32
- language="portuguese" # Add language explicitly in the pipeline to force Portuguese
33
  )
34
 
35
-
36
-
37
  # Basic GET endpoint
38
  @app.get("/")
39
  def read_root():
 
28
  model=model,
29
  tokenizer=processor.tokenizer, # Explicitly set the tokenizer from the processor
30
  feature_extractor=processor.feature_extractor, # Set the feature extractor for audio input
31
+ device=device
 
32
  )
33
 
 
 
34
  # Basic GET endpoint
35
  @app.get("/")
36
  def read_root():