FrankZxShen
commited on
Commit
•
fcf886d
1
Parent(s):
429bd0a
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ if __name__ == "__main__":
|
|
90 |
help="directory to your fine-tuned model")
|
91 |
parser.add_argument("--config_dir", default="./configs/modified_finetune_speaker.json",
|
92 |
help="directory to your model config file")
|
93 |
-
parser.add_argument("--share", default=False,
|
94 |
help="make link public (used in colab)")
|
95 |
|
96 |
args = parser.parse_args()
|
@@ -153,4 +153,4 @@ if __name__ == "__main__":
|
|
153 |
btn.click(vc_fn, inputs=[source_speaker, target_speaker, record_audio, upload_audio],
|
154 |
outputs=[message_box, converted_audio])
|
155 |
webbrowser.open("http://127.0.0.1:7899")
|
156 |
-
app.launch(share=args.share
|
|
|
90 |
help="directory to your fine-tuned model")
|
91 |
parser.add_argument("--config_dir", default="./configs/modified_finetune_speaker.json",
|
92 |
help="directory to your model config file")
|
93 |
+
parser.add_argument("--share", action="store_true", default=False,
|
94 |
help="make link public (used in colab)")
|
95 |
|
96 |
args = parser.parse_args()
|
|
|
153 |
btn.click(vc_fn, inputs=[source_speaker, target_speaker, record_audio, upload_audio],
|
154 |
outputs=[message_box, converted_audio])
|
155 |
webbrowser.open("http://127.0.0.1:7899")
|
156 |
+
app.queue(concurrency_count=1, api_open=True).launch(share=args.share)
|