mobinln commited on
Commit
7c11e96
·
1 Parent(s): 31de337

fix: audio interface

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ model = WhisperForConditionalGeneration.from_pretrained("Neurai/NeuraSpeech_Whis
7
  forced_decoder_ids = processor.get_decoder_prompt_ids(language="fa", task="transcribe")
8
 
9
 
10
- def transcribe(audio):
 
11
  if audio is None:
12
  return "No audio input provided. Please record or upload an audio file."
13
 
 
7
  forced_decoder_ids = processor.get_decoder_prompt_ids(language="fa", task="transcribe")
8
 
9
 
10
+ def transcribe(audio, *args):
11
+ print(audio, args)
12
  if audio is None:
13
  return "No audio input provided. Please record or upload an audio file."
14