mnhkahn commited on
Commit
11c91c1
·
1 Parent(s): 903aa53

fix: 将titles参数类型从list[str]更正为List[str]

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: list[str] = Body(..., description="List of article titles to score")
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
  为文章标题列表打分,返回标题和对应的分数。