Issues running the OpenNMT-py REST server

@francoishernandez ran into another question. So I made the changes above and reinstalled OpenNMT-py into my virtual environment and it worked… so thanks for that.

Regarding the assert… it seems that when the translate() function is called, the caller is setting src_feats to {} (i.e. empty dict) rather than None or leaving the param out of the call. So my question is… should I add the assert so that both None and {} are permitted?

Hii, i have running the this project using same command but the terminal shows

pre-loading model 100
[2023-08-03 05:23:55, 917 INFO] loading model 100
[2023-08-03 05:23:57, 126 INFO] Serving on https:127.0.0.1:5000] but when accesing this link it gives 404