Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yjoonjang committed Dec 3, 2024
1 parent 19e38d2 commit 5cc6960
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mteb/leaderboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from pathlib import Path

import gradio as gr
import pandas as pd
from gradio_rangeslider import RangeSlider

import mteb
Expand Down
2 changes: 1 addition & 1 deletion mteb/models/openai_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def encode(self, sentences: list[str], **kwargs: Any) -> np.ndarray:
logger.warning(
"Reducing embedding size available only for text-embedding-3-* models"
)

trimmed_sentences = []
for sentence in sentences:
encoding = tiktoken.get_encoding(self._tokenizer_name)
Expand Down

0 comments on commit 5cc6960

Please sign in to comment.