This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| from dataclasses import dataclass | |
| from typing import Callable | |
| from datasets import load_dataset | |
| from sentence_transformers.losses import CosineSimilarityLoss | |
| from torch import nn | |
| import wandb | |
| from setfit import SetFitModel, SetFitTrainer, sample_dataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See the Documentation for more information: https://cubiedev.github.io/TheNounProjectAPI | |
| # Install Module using "pip install TheNounProjectAPI". | |
| # This sample works for version >= 1.0.5 | |
| from TheNounProjectAPI import API | |
| if __name__ == "__main__": | |
| # API Key and Secret from https://api.thenounproject.com/getting_started.html#creating-an-api-key | |
| key = "<my api key>" | |
| secret = "<my api secret>" |
NewerOlder