Skip to content

Commit

Permalink
move client to main
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bain committed Dec 10, 2024
1 parent 32a60d0 commit 745e27e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from argparse import ArgumentParser
from collections import defaultdict
from dataclasses import asdict, dataclass
from dotenv import load_dotenv
from enum import Enum
from pathlib import Path
from typing import List, Optional
Expand All @@ -28,7 +29,7 @@
import tqdm

_REPO_DIR = Path(__file__).parent
client = Reka()
CLIENT = None


def _parse_args():
Expand Down Expand Up @@ -311,6 +312,9 @@ def _summarise_metrics(examples: List[Example]) -> None:

if __name__ == "__main__":
args = _parse_args()

load_dotenv()
CLIENT = Reka(api_key=os.environ["REKA_API_KEY"])
if args.output.exists():
print(
f"❗️ Warning: --output {args.output} already exists. Will overwrite.",
Expand Down

0 comments on commit 745e27e

Please sign in to comment.