mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00
refactor(transcribe): rem data var
Removed data variable as it was redundant
This commit is contained in:
parent
854784880b
commit
44cc156a7c
@ -549,14 +549,12 @@ def transcribe(
|
||||
if censor:
|
||||
text = censor_text(text, forbidden_words)
|
||||
|
||||
data = dict(
|
||||
return dict(
|
||||
text=text,
|
||||
segments=all_segments,
|
||||
language=language,
|
||||
)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
def cli():
|
||||
from . import available_models
|
||||
|
Loading…
x
Reference in New Issue
Block a user