avimittal30 commited on
Commit
8542e1c
·
verified ·
1 Parent(s): 59b9bfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import torch
2
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
 
3
  # from datasets import load_dataset
4
 
5
 
@@ -26,7 +27,7 @@ pipe = pipeline(
26
  )
27
 
28
  # Function to process audio input and transcribe it
29
- @spaces.GPU
30
  def transcribe(audio):
31
  # Load and preprocess the audio
32
  result = pipe(sample)
 
1
  import torch
2
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
3
+ # import spaces
4
  # from datasets import load_dataset
5
 
6
 
 
27
  )
28
 
29
  # Function to process audio input and transcribe it
30
+ # @spaces.GPU
31
  def transcribe(audio):
32
  # Load and preprocess the audio
33
  result = pipe(sample)