Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ To get started, make sure you have the following installed on your system:
3. Input your tabbyAPI endpoint URL and admin key and press connect!

## Command-line Arguments
| Argument | Description |
| :----------------------- | :----------------------------------------------------------- |
| `-h` or`--help` | Show this help message and exit |
| `-p` or `--port` | Specify port to host the WebUI on (default 7860) |
| `-l` or `--listen` | Share WebUI link via LAN |
| `-s` or `--share` | Share WebUI link remotely via Gradio's built in tunnel |
| `-a` or `--autolaunch` | Launch browser after starting WebUI |
| `-e` or `--endpoint_url` | TabbyAPI endpoint URL (default http://localhost:5000) |
| `-k` or `--admin_key` | TabbyAPI admin key, connect automatically on launch |
| Argument | Description |
| :----------------------- | :---------------------------------------------------------------------------------------------- |
| `-h` or`--help` | Show this help message and exit |
| `-p` or `--port` | Specify port to host the WebUI on (default 7860) |
| `-l` or `--listen` | Share WebUI link via LAN |
| `-s` or `--share` | Share WebUI link remotely via Gradio's built in tunnel |
| `-a` or `--autolaunch` | Launch browser after starting WebUI |
| `-e` or `--endpoint_url` | TabbyAPI endpoint URL (default http://localhost:5000) |
| `-k` or `--admin_key` | TabbyAPI admin key, connect automatically on launch |
| `-r` or `--root_path` | Sets the root path for the Gradio application. Useful if running Gradio behind a reverse proxy. |
8 changes: 8 additions & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
default=None,
help="TabbyAPI admin key, connect automatically on launch",
)
parser.add_argument(
"-r",
"--root_path",
type=str,
default=None,
help="Root path",
)
args = parser.parse_args()
if args.listen:
host_url = "0.0.0.0"
Expand Down Expand Up @@ -1055,4 +1062,5 @@ def cancel_download():
server_name=host_url,
server_port=args.port,
share=args.share,
root_path=args.root_path,
)