mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-02-07 06:02:49 +08:00
fix parser
This commit is contained in:
parent
981ec0ddb8
commit
b9b433f7eb
@ -632,7 +632,7 @@ with gr.Blocks() as app:
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--colab", type=bool, default=False, help="Launch in colab")
|
parser.add_argument("--colab", action='store_true', help="Launch in colab")
|
||||||
cmd_opts = parser.parse_args()
|
cmd_opts = parser.parse_args()
|
||||||
if cmd_opts.colab:
|
if cmd_opts.colab:
|
||||||
app.launch(share=True)
|
app.launch(share=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user