severian42 / GraphRAG-Local-UI

GraphRAG using Local LLMs - Features robust API and multiple apps for Indexing/Prompt Tuning/Query/Chat/Visualizing/Etc. This is meant to be the ultimate GraphRAG/KG local LLM app.
MIT License
1.75k stars 207 forks source link

Server name and port #28

Closed bzhanghh closed 4 months ago

bzhanghh commented 4 months ago

How to change Gradio startup server name and port? I tried many methods like add params in demo.launch() and set env variables but all failed. I want to change to http://0.0.0.0:8100

rickywu commented 3 months ago

do you find method?

bzhanghh commented 3 months ago

do you find method?

Ya, change the env variables and launch by using python app.py instead of gradio.

rickywu commented 3 months ago

do you find method?

Ya, change the env variables and launch by using python app.py instead of gradio.

which var? I didn't find in sample evn file

bzhanghh commented 3 months ago

do you find method?

Ya, change the env variables and launch by using python app.py instead of gradio.

which var? I didn't find in sample evn file

Set linux env variables GRADIO_SERVER_PORT and GRADIO_SERVER_NAME. I think you can also try to launch by using params like python app.py --host 0.0.0.0 --port ****

rickywu commented 3 months ago

Yes, I foiund it, thanks