Skip to content

Commit ccca0e1

Browse files
committed
solving #10:use string for arugment input, instead of pathlib
1 parent 1843f0d commit ccca0e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def train(checkpoint_name, config, max_epoch):
8181
type=click.STRING,
8282
help="Name of the model configuration file located in 'config/'." +
8383
" Default is 'default'")
84-
@click.option('--source', '-s', default=None, type=pathlib.Path, required=False,
84+
@click.option('--source', '-s', default=None, type=click.STRING, required=False,
8585
help="Custom source root directory. The source must be 16-bit "
8686
"8 Khz mono WAV. This is only useful when constructing a database"
8787
" without synthesizing queries.")
88-
@click.option('--output', '-o', default=None, type=pathlib.Path, required=False,
88+
@click.option('--output', '-o', default=None, type=click.STRING, required=False,
8989
help="Root directory where the generated embeddings (uncompressed)" +
9090
" will be stored. Default is OUTPUT_ROOT_DIR/CHECKPOINT_NAME " +
9191
"defined in config.")

0 commit comments

Comments
 (0)