Skip to content

Commit

Permalink
fix bug (#88)
Browse files Browse the repository at this point in the history
Co-authored-by: wangyuxin <[email protected]>
  • Loading branch information
wangyuxinwhy and wangyuxin committed Aug 17, 2023
1 parent c42cfde commit ad5fb66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mteb-zh/run_mteb_zh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from typing import Annotated
from typing import Annotated, Optional

import typer
from mteb import MTEB, AbsTask
Expand Down Expand Up @@ -43,11 +43,11 @@ def filter_by_type(task_type: TaskType):

def main(
model_type: Annotated[ModelType, typer.Option()],
model_id: str | None = None,
model_id: Optional[str] = None,
task_type: TaskType = TaskType.Classification,
task_name: str | None = None,
task_name: Optional[str] = None,
output_folder: Path = Path('results'),
device: DeviceType | None = None,
device: Optional[DeviceType] = None,
):
output_folder = Path(output_folder)
model = load_model(model_type, model_id, device)
Expand Down

0 comments on commit ad5fb66

Please sign in to comment.