OpenNMT-py: Met some problems when using server

I tried to use server.py, but met some problems. I follow the tutorial at https://github.com/OpenNMT/OpenNMT-py/pull/619 But I got 404 error.

the input: curl http://0.0.0.0:5000/models

the output:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>

Could you give me advice? Thank you very much!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

There’s a parameter --url_root that is set to /translator, therefore urls are e.g. http://<ip_address>:<port>/translator/models.