Unverified Commit f4db27b8 authored by MissPenguin's avatar MissPenguin Committed by GitHub
Browse files

Update serving_en.md

parent 84979053
...@@ -158,22 +158,17 @@ If you need to modify the service logic, the following steps are generally requi ...@@ -158,22 +158,17 @@ If you need to modify the service logic, the following steps are generally requi
```shell ```shell
hub serving stop --port/-p XXXX hub serving stop --port/-p XXXX
``` ```
- 2. Modify the code in the corresponding files, like `module.py` and `params.py`, according to the actual needs. - 2. Modify the code in the corresponding files, like `module.py` and `params.py`, according to the actual needs.
For example, if you need to replace the model used by the deployed service, you need to modify model path parameters `det_model_dir` and `rec_model_dir` in `params.py`. Of course, other related parameters may need to be modified at the same time. Please modify and debug according to the actual situation. It is suggested to run `module.py` directly for debugging after modification before starting the service test. For example, if you need to replace the model used by the deployed service, you need to modify model path parameters `det_model_dir` and `rec_model_dir` in `params.py`. Of course, other related parameters may need to be modified at the same time. Please modify and debug according to the actual situation. It is suggested to run `module.py` directly for debugging after modification before starting the service test.
- 3. Uninstall old service module - 3. Uninstall old service module
```shell ```shell
hub uninstall ocr_system hub uninstall ocr_system
``` ```
- 4. Install modified service module - 4. Install modified service module
```shell ```shell
hub install deploy/hubserving/ocr_system/ hub install deploy/hubserving/ocr_system/
``` ```
- 5. Restart service - 5. Restart service
```shell ```shell
hub serving start -m ocr_system hub serving start -m ocr_system
``` ```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment