From a573c6a3c2a03934fa9f6ed5953be843fb1b63d2 Mon Sep 17 00:00:00 2001 From: learningpro Date: Tue, 22 Oct 2024 15:22:17 +0800 Subject: [PATCH] Update README.md Addn fastapi demo introduction --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 8a6b072..5a81787 100755 --- a/README.md +++ b/README.md @@ -262,6 +262,22 @@ python demo/app.py Have Fun! +### FastAPI Demo +It's easy to run a FastAPI server to host an API server running the same functions as gradio. + +To start FastAPI server, run the following command: + +``` +python demo/fastapi_app.py +``` + +To test the server, you can open another terminal and run: + +``` +python demo/fastapi_client.py +``` + + ## 5. License This code repository is licensed under [the MIT License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-CODE). The use of Janus models is subject to [DeepSeek Model License](https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-MODEL).