-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance FastAPI apps #2533
Merged
cuicheng01
merged 24 commits into
PaddlePaddle:develop
from
Bobholamovic:fix/bump_bce_sdk_version
Dec 25, 2024
Merged
Enhance FastAPI apps #2533
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7e52cdc
Bump bce-python-sdk version
Bobholamovic f86abec
Fix type hints
Bobholamovic 69abca0
Fix type hint
Bobholamovic 8af94d1
Fix
Bobholamovic 69de5a2
Fix
Bobholamovic efa93a9
Polish error messages
Bobholamovic ed80e8e
Remove unused variables
Bobholamovic e58ee48
Fix typing
Bobholamovic 6d9cfcb
Polish typing
Bobholamovic 190d1ad
Support setting use_hpip in config file
Bobholamovic ad752a6
Fix import
Bobholamovic 694bee6
Update docs:
Bobholamovic fea66f9
Fix typos
Bobholamovic 29658ae
Fix and add _build_models
Bobholamovic 3ffc4a7
Fix bug
Bobholamovic bcab72f
Merge remote-tracking branch 'official/develop' into fix/bump_bce_sdk…
Bobholamovic f33921d
formula recognition and seal recognition FastAPI apps support pdf input
Bobholamovic a7ad3b7
Rename
Bobholamovic e6df2c0
Refactor OCR pipeline apps and add threshold for multi_label_image_cl…
Bobholamovic 60f5c9c
Support data_info and update OCR pipelines
Bobholamovic 40f305a
Update docs
Bobholamovic 1dc8a58
Merge remote-tracking branch 'official/develop' into fix/bump_bce_sdk…
Bobholamovic 3841089
Fix ppchatocrv3 typing
Bobholamovic 06acf7c
Fix bug
Bobholamovic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -399,6 +399,72 @@ Below are the API reference and multi-language service invocation examples: | |
|
||
<details><summary>API Reference</summary> | ||
|
||
<p>For main operations provided by the service:</p> | ||
<ul> | ||
<li>The HTTP request method is POST.</li> | ||
<li>The request body and the response body are both JSON data (JSON objects).</li> | ||
<li>When the request is successfully processed, the response status code is <code>200</code>, and the attributes of the response body are as follows:</li> | ||
</ul> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Type</th> | ||
<th>Meaning</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><code>logId</code></td> | ||
<td><code>string</code></td> | ||
<td>UUID for the request.</td> | ||
</tr> | ||
<tr> | ||
<td><code>errorCode</code></td> | ||
<td><code>integer</code></td> | ||
<td>Error code. Fixed to <code>0</code>.</td> | ||
</tr> | ||
<tr> | ||
<td><code>errorMsg</code></td> | ||
<td><code>string</code></td> | ||
<td>Error description. Fixed to <code>"Success"</code>.</td> | ||
</tr> | ||
<tr> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 规范化后,对于主要操作,成功的响应一定有 |
||
<td><code>result</code></td> | ||
<td><code>object</code></td> | ||
<td>Operation result.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<ul> | ||
<li>When the request is not successfully processed, the attributes of the response body are as follows:</li> | ||
</ul> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Type</th> | ||
<th>Meaning</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><code>logId</code></td> | ||
<td><code>string</code></td> | ||
<td>UUID for the request.</td> | ||
</tr> | ||
<tr> | ||
<td><code>errorCode</code></td> | ||
<td><code>integer</code></td> | ||
<td>Error code. Same as the response status code.</td> | ||
</tr> | ||
<tr> | ||
<td><code>errorMsg</code></td> | ||
<td><code>string</code></td> | ||
<td>Error description.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p>The main operations provided by the service are as follows:</p> | ||
<ul> | ||
<li><b><code>buildIndex</code></b></li> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在文档中补充之前漏掉的对
logId
字段的描述