fix: 将titles参数类型从list[str]更正为List[str]
Browse files
app.py
CHANGED
|
@@ -506,7 +506,7 @@ async def text_to_speech(
|
|
| 506 |
|
| 507 |
@app.post("/text/score")
|
| 508 |
async def score_titles(
|
| 509 |
-
titles:
|
| 510 |
):
|
| 511 |
"""
|
| 512 |
为文章标题列表打分,返回标题和对应的分数。
|
|
|
|
| 506 |
|
| 507 |
@app.post("/text/score")
|
| 508 |
async def score_titles(
|
| 509 |
+
titles: List[str] = Body(..., description="List of article titles to score")
|
| 510 |
):
|
| 511 |
"""
|
| 512 |
为文章标题列表打分,返回标题和对应的分数。
|