style: auto-format code with ruff (cron)
This commit is contained in:
@@ -1166,7 +1166,7 @@ async def create_manual_entity(
|
||||
start_pos=entity.start_pos,
|
||||
end_pos=entity.end_pos,
|
||||
text_snippet=text[
|
||||
max(0, entity.start_pos - 20): min(len(text), entity.end_pos + 20)
|
||||
max(0, entity.start_pos - 20) : min(len(text), entity.end_pos + 20)
|
||||
],
|
||||
confidence=1.0,
|
||||
)
|
||||
@@ -1408,7 +1408,7 @@ async def upload_audio(project_id: str, file: UploadFile = File(...), _=Depends(
|
||||
start_pos=pos,
|
||||
end_pos=pos + len(name),
|
||||
text_snippet=full_text[
|
||||
max(0, pos - 20): min(len(full_text), pos + len(name) + 20)
|
||||
max(0, pos - 20) : min(len(full_text), pos + len(name) + 20)
|
||||
],
|
||||
confidence=1.0,
|
||||
)
|
||||
@@ -1534,7 +1534,7 @@ async def upload_document(project_id: str, file: UploadFile = File(...), _=Depen
|
||||
start_pos=pos,
|
||||
end_pos=pos + len(name),
|
||||
text_snippet=full_text[
|
||||
max(0, pos - 20): min(len(full_text), pos + len(name) + 20)
|
||||
max(0, pos - 20) : min(len(full_text), pos + len(name) + 20)
|
||||
],
|
||||
confidence=1.0,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user