mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-15 16:50:57 +08:00
.
This commit is contained in:
parent
f8d48917ba
commit
233e4415a1
@ -387,10 +387,7 @@ def prepare_chatml_sample(sample: Union[ChatMLSample, Dict], tokenizer):
|
||||
|
||||
return input_tokens, audio_contents, speaker_id
|
||||
|
||||
except Exception as e:
|
||||
import json
|
||||
print(f"Error in prepare_chatml_sample: {str(e)}")
|
||||
print(f"Sample data: {json.dumps(sample, indent=2)}")
|
||||
except Exception:
|
||||
return None, None, None
|
||||
|
||||
@dataclass
|
||||
|
||||
Loading…
Reference in New Issue
Block a user