kh-CHEUNG commited on
Commit
fee8800
·
verified ·
1 Parent(s): 0846984

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,11 +76,11 @@ def respond(
76
 
77
  @spaces.GPU
78
  def transcribe(asr_inputs, task):
79
- print("Type: " + str(type(asr_inputs)))
80
  if asr_inputs is None:
81
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
82
 
83
- text = asr_pl(asr_inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
84
  return text
85
 
86
 
 
76
 
77
  @spaces.GPU
78
  def transcribe(asr_inputs, task):
79
+ #print("Type: " + str(type(asr_inputs)))
80
  if asr_inputs is None:
81
  raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
82
 
83
+ text = asr_pl(asr_inputs, batch_size=ASR_BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
84
  return text
85
 
86