This is a simple example of LangServe. It serves a bunch of endpoints act as a smart translator agent.
-
Installation
pip install -r requirements.txt
-
Set up your OpenAI API key
Create a
.env
file in the project root folder and add the following content:OPENAI_API_KEY=<your valid openai api key>
-
Launch the server
python app.py
-
Visit the API docs