lcebear / memoryDialogueBot

Master Thesis Project: A memory based dialogue agent
MIT License
6 stars 3 forks source link

Accessibility of the API from other computers #6

Closed Barachia closed 4 years ago

Barachia commented 4 years ago

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