EXAMPLE_MODEL_ID = "cardiffnlp/twitter-roberta-base-sentiment-latest" TITLE_MD = """

🐢Giskard Evaluator

Welcome to the Giskard Evaluator Space! Get a model vulnerability report immediately and freely by simply providing the model and dataset id on Hugging Face. You can also checkout our library documentation here. """ FOOTER_HTML = """

This evaluator is built on top of Giskard Open Source library and Giskard CI/CD.
If you like our work, please give the projects ⭐️ star on GitHub.

""" INTRODUCTION_MD = """

Text Classification

""" CONFIRM_MAPPING_DETAILS_MD = """

Confirm Pre-processing Details

Make sure the output variable's labels and the input variable's name are accurately mapped across both the dataset and the model. You can select the output variable's labels from the dropdowns below. """ CONFIRM_MAPPING_DETAILS_FAIL_MD = """

Confirm Pre-processing Details

We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. Please manually check the mapping below. """ CONFIRM_MAPPING_DETAILS_FAIL_RAW = """ We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. Please manually check the mapping below. """ CHECK_CONFIG_OR_SPLIT_RAW = """ Please check your dataset config or split. """ CHECK_LOG_SECTION_RAW = """Your have successfully submitted a Giskard evaluation job. Further details are available in the Logs tab. You can find your report posted in your model's community discussion section.""" PREDICTION_SAMPLE_MD = """

Model Prediction Sample

Here's a sample of your model's prediction on an example from the dataset. """ MAPPING_STYLED_ERROR_WARNING = """

⚠️ We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. Please manually check the mapping below.

""" UNMATCHED_MODEL_DATASET_STYLED_ERROR = """

❌ Your model and dataset have different numbers of labels. Please double check your model and dataset.

""" NOT_FOUND_MODEL_RAW = """ We cannot find your model on Hugging Face. Please check that the model id is correct and publicly accessible. """ NOT_TEXT_CLASSIFICATION_MODEL_RAW = """ Your model does not fall under the category of text classification. This page is specifically designated for the evaluation of text classification models. """ USE_INFERENCE_API_TIP = """ We use the free Hugging Face Inference API to evaluate the models with a Hugging Face acces token.
Please get your token and input here. This would help us to avoid the API calling rate limit and make the evaluation faster.
""" USE_INFERENCE_API_NOTICE = """ Notice: """ HF_TOKEN_INVALID_STYLED = """

Your Hugging Face token is invalid. Please double check your token.

""" VALIDATED_MODEL_DATASET_STYLED = """

Your model and dataset have been validated!

""" NOT_FOUND_DATASET_RAW = """ We cannot find your dataset on Hugging Face. Please check that the dataset id is correct and publicly accessible. """ def get_dataset_fetch_error_raw(error): return f"""Sorry you cannot use this dataset because of an unknwon error: "{error}"."""