Skip to content

Commit

Permalink
Merge pull request suno-ai#370 from tongbaojia/TT_fix_cli_optional
Browse files Browse the repository at this point in the history
[Fix] Fix cli optional type check
  • Loading branch information
mikeyshulman authored Jun 23, 2023
2 parents 6921c91 + 1bb0bf7 commit 7280e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bark/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def cli():
parser.add_argument("--output_dir", type=str, default=".", help="directory to save the outputs")
parser.add_argument(
"--history_prompt",
type=Optional[Union[Dict, str]],
type=str,
default=None,
help="history choice for audio cloning",
help="history choice for audio cloning, be path to the .npz file.",
)
parser.add_argument(
"--text_temp",
Expand All @@ -48,7 +48,7 @@ def cli():
input_text: str = args.get("text")
output_filename: str = args.get("output_filename")
output_dir: str = args.get("output_dir")
history_prompt: Optional[Union[Dict, str]] = args.get("history_prompt")
history_prompt: str = args.get("history_prompt")
text_temp: float = args.get("text_temp")
waveform_temp: float = args.get("waveform_temp")
silent: bool = args.get("silent")
Expand Down

0 comments on commit 7280e4e

Please sign in to comment.