davidberenstein1957's picture
refactor package folders
fd2f716
raw
history blame
218 Bytes
from synthetic_dataset_generator.constants import API_KEYS
TOKEN_INDEX = 0
def _get_next_api_key():
global TOKEN_INDEX
api_key = API_KEYS[TOKEN_INDEX % len(API_KEYS)]
TOKEN_INDEX += 1
return api_key