fix parser
This commit is contained in:
parent
981ec0ddb8
commit
b9b433f7eb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user