Skip to content

Commit 7280e4e

Browse files
authored
Merge pull request suno-ai#370 from tongbaojia/TT_fix_cli_optional
[Fix] Fix cli optional type check
2 parents 6921c91 + 1bb0bf7 commit 7280e4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bark/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def cli():
2020
parser.add_argument("--output_dir", type=str, default=".", help="directory to save the outputs")
2121
parser.add_argument(
2222
"--history_prompt",
23-
type=Optional[Union[Dict, str]],
23+
type=str,
2424
default=None,
25-
help="history choice for audio cloning",
25+
help="history choice for audio cloning, be path to the .npz file.",
2626
)
2727
parser.add_argument(
2828
"--text_temp",
@@ -48,7 +48,7 @@ def cli():
4848
input_text: str = args.get("text")
4949
output_filename: str = args.get("output_filename")
5050
output_dir: str = args.get("output_dir")
51-
history_prompt: Optional[Union[Dict, str]] = args.get("history_prompt")
51+
history_prompt: str = args.get("history_prompt")
5252
text_temp: float = args.get("text_temp")
5353
waveform_temp: float = args.get("waveform_temp")
5454
silent: bool = args.get("silent")

0 commit comments

Comments
 (0)