Spaces:
Sleeping
Sleeping
ulysses115
commited on
Commit
•
adaad9d
1
Parent(s):
b7f3796
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ download_audio_js = """
|
|
105 |
if __name__ == '__main__':
|
106 |
parser = argparse.ArgumentParser()
|
107 |
parser.add_argument('--device', type=str, default='cpu')
|
108 |
-
parser.add_argument("--share", action="store_true", default=
|
109 |
args = parser.parse_args()
|
110 |
|
111 |
device = torch.device(args.device)
|
@@ -188,4 +188,4 @@ if __name__ == '__main__':
|
|
188 |
window.scrollTo(x, y);
|
189 |
return [];
|
190 |
}}""")
|
191 |
-
app.queue(concurrency_count=
|
|
|
105 |
if __name__ == '__main__':
|
106 |
parser = argparse.ArgumentParser()
|
107 |
parser.add_argument('--device', type=str, default='cpu')
|
108 |
+
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
109 |
args = parser.parse_args()
|
110 |
|
111 |
device = torch.device(args.device)
|
|
|
188 |
window.scrollTo(x, y);
|
189 |
return [];
|
190 |
}}""")
|
191 |
+
app.queue(concurrency_count=3).launch(show_api=True, share=args.share)
|