A simple way to expose the API on the flask server to other computers is by making use of the waitress library. With an extra python file, with the following code, you can easily deploy the API:
Filename: waitress_server.py
from waitress import serve
import agent_api
serve(agent_api.app, host='0.0.0.0', port=5000)
And then you can run the server with python waitress_server.py
A simple way to expose the API on the flask server to other computers is by making use of the waitress library. With an extra python file, with the following code, you can easily deploy the API:
Filename:
waitress_server.py
And then you can run the server with
python waitress_server.py