mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
better error messages
This commit is contained in:
1 parent
c7672af5cd
commit
81a96f73c8
1 file changed
+5
-2
@@ -63,8 +63,11 @@ pub async fn post_speak(_request: HttpRequest,
|
||||
|
||||
println!("Encoded Text: {:?}", encoded);
|
||||
|
||||
let tacotron = app_state.model_cache.get_or_load_arbabet_tacotron(&tacotron_model).unwrap();
|
||||
let melgan = app_state.model_cache.get_or_load_melgan(&melgan_model).unwrap();
|
||||
let tacotron = app_state.model_cache.get_or_load_arbabet_tacotron(&tacotron_model)
|
||||
.expect(&format!("Couldn't load tacotron model: {}", tacotron_model));
|
||||
|
||||
let melgan = app_state.model_cache.get_or_load_melgan(&melgan_model)
|
||||
.expect(&format!("Couldn't load melgan model: {}", melgan_model));
|
||||
|
||||
let wav_data = TacoMelModel::new().run_tts_encoded(&tacotron, &melgan, &encoded);
|
||||
|
||||
|
||||
Reference in new issue
Block a user