fix: audio interface
Browse files
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 |
|