Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Commit
•
b9361ff
1
Parent(s):
a576047
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
app.py
CHANGED
@@ -831,10 +831,17 @@ If you're having issues, try converting your reference audio to WAV or MP3, clip
|
|
831 |
help="Share the app via Gradio share link",
|
832 |
)
|
833 |
@click.option("--api", "-a", default=True, is_flag=True, help="Allow API access")
|
834 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
835 |
global app
|
836 |
print("Starting app...")
|
837 |
-
app.queue(api_open=api).launch(server_name=host, server_port=port, share=share, show_api=api)
|
838 |
|
839 |
|
840 |
if __name__ == "__main__":
|
|
|
831 |
help="Share the app via Gradio share link",
|
832 |
)
|
833 |
@click.option("--api", "-a", default=True, is_flag=True, help="Allow API access")
|
834 |
+
@click.option(
|
835 |
+
"--root_path",
|
836 |
+
"-r",
|
837 |
+
default=None,
|
838 |
+
type=str,
|
839 |
+
help='The root path (or "mount point") of the application, if it\'s not served from the root ("/") of the domain. Often used when the application is behind a reverse proxy that forwards requests to the application, e.g. set "/myapp" or full URL for application served at "https://example.com/myapp".',
|
840 |
+
)
|
841 |
+
def main(port, host, share, api, root_path):
|
842 |
global app
|
843 |
print("Starting app...")
|
844 |
+
app.queue(api_open=api).launch(server_name=host, server_port=port, share=share, show_api=api, root_path=root_path)
|
845 |
|
846 |
|
847 |
if __name__ == "__main__":
|