Spaces:
Running
on
Zero
Running
on
Zero
update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def transcribe_and_recognize_entities(audio_file, prompt):
|
|
48 |
)
|
49 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
|
50 |
prompt_length_in_transcription = len(prompt)
|
51 |
-
transcription = transcription[prompt_length_in_transcription
|
52 |
|
53 |
return transcription
|
54 |
|
|
|
48 |
)
|
49 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
|
50 |
prompt_length_in_transcription = len(prompt)
|
51 |
+
transcription = transcription[prompt_length_in_transcription:] # Remove the prompt
|
52 |
|
53 |
return transcription
|
54 |
|