app.py error

#11
by ken123 - opened

app.py code error : class Translator__init__() missing 1 required positional argument: 'dtype',and not positional argument: 'sample_rate',
translator = Translator(
model_name_or_card="seamlessM4T_large",
vocoder_name_or_card="vocoder_36langs",
device=device,
sample_rate=AUDIO_SAMPLE_RATE,
)

dtype=None, sample_rate not need

try this:

translator = Translator("seamlessM4T_large",  vocoder_name_or_card="vocoder_36langs",  device=torch.device("cuda:0"),  dtype=None)

https://huggingface.co/spaces/facebook/seamless_m4t/discussions/10

deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden
deleted
This comment has been hidden

Sign up or log in to comment