1
0
mirror of synced 2024-11-15 03:07:40 +01:00

fix parser

This commit is contained in:
源文雨 2023-04-01 15:35:24 +08:00
parent 981ec0ddb8
commit b9b433f7eb

View File

@ -632,7 +632,7 @@ with gr.Blocks() as app:
import argparse
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()
if cmd_opts.colab:
app.launch(share=True)