-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Rather than having to code up two-LOC python script as advised here: https://www.gradio.app/guides/creating-a-chatbot-fast#note-for-open-ai-api-compatible-endpoints
It would be nice to be able to fire up such most-basic chatbot interfaces using CLI with documented CLI arguments: python -m gradio openaichat --share --host ... --port ...
or gradio openaichat --share --host ... --port ...
. The killer feature would be the --share
option.
Currently it might be possible with a clutch:
python -c 'import sys, gradio as gr; gr.load_chat("http://{host}:{port}/v1/".format(host = sys.argv[-2], port = sys.argv[-1]), model=sys.argv[-3], token="***").launch(share=True)' "Qwen/Qwen3-8B" "127.0.0.1" "8080"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers