Langboat / mengzi-retrieval-lm

An experimental implementation of the retrieval-enhanced language model
Apache License 2.0
75 stars 5 forks source link

api.py #7

Open 47777777 opened 2 years ago

47777777 commented 2 years ago

What is the purpose of api.py please? Will there be any output? I ran api.py as the readme and it stopped at the position shown below without any output, am I doing something wrong? image

bling0830 commented 2 years ago

api.py is used to deploy retrieval services.

The picture is consistent with the result of successful deployment. At this time, the IP accessing the retrieval service can be retrieved, and the status of "200" will be displayed if the retrieval is successful.

You can refer to this link to debug the retrieval service. https://fastapi.tiangolo.com/#interactive-api-docs