Spaces:
Running
on
Zero
Running
on
Zero
update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,6 @@ def transcribe_and_recognize_entities(audio_file, prompt):
|
|
47 |
generation_config=model.generation_config,
|
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 |
|
|
|
47 |
generation_config=model.generation_config,
|
48 |
)
|
49 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
|
|
|
|
|
50 |
|
51 |
return transcription
|
52 |
|