Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DresAaron committed Sep 23, 2024
1 parent db4f1e9 commit 18fbcca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ def transform_jina_input_text(model, text):

data = {"model": model, "input": [transform_jina_input_text(model, text) for text in texts]}

task = credentials.get("task", None)
dimensions = credentials.get("dimensions", None)
late_chunking = credentials.get("late_chunking", None)
task = credentials.get("task")
dimensions = credentials.get("dimensions")
late_chunking = credentials.get("late_chunking")

if task is not None:
data["task"] = task

if dimensions is not None:
data["dimensions"] = int(dimensions)

if late_chunking is not None:
data["late_chunking"] = late_chunking

Expand Down

0 comments on commit 18fbcca

Please sign in to comment.