michaelthwan / searchGPT

Grounded search engine (i.e. with source reference) based on LLM / ChatGPT / OpenAI API. It supports web search, file content search etc.
MIT License
600 stars 62 forks source link

How do I open IP access and change ports? #91

Closed fusang1337 closed 4 days ago

fusang1337 commented 11 months ago

I built it on the server and it works fine

(searchChat) root@fusang:~/docker/searchGPT/src# python flask_app.py
 * Serving Flask app 'website'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 790-193-721

How to change access privileges from 127.0.0.1 and 5000

QAbot-zh commented 10 months ago

You can set the host and port in app.run() function:

app.run(debug=True, host='xxxxx', port=xx)
michaelthwan commented 10 months ago

Thank you @undefinedcodezhong !