test-giskard-evaluator / wordings.py
ZeroCommand's picture
add wording
34c7674
raw
history blame
No virus
3.57 kB
INTRODUCTION_MD = """
<h1 style="text-align: center;">
🐢Giskard Evaluator
</h1>
Welcome to Giskard Evaluator Space! Get your report immediately by simply input your model id and dataset id below. Follow our leads and improve your model in no time.
"""
CONFIRM_MAPPING_DETAILS_MD = """
<h1 style="text-align: center;">
Confirm Pre-processing Details
</h1>
Please confirm the pre-processing details below. Align the column names of your model in the <b>dropdown</b> menu to your dataset's. If you are not sure, please double check your model and dataset.
"""
CONFIRM_MAPPING_DETAILS_FAIL_MD = """
<h1 style="text-align: center;">
Confirm Pre-processing Details
</h1>
The format of your dataset with the model does not match. <b>Pleaser double check your model and dataset.</b>
"""
UNMATCHED_MODEL_DATASET = """
Model prediction labels do not align with the labels present in the dataset. Please double check your model and dataset.
"""
CONFIRM_MAPPING_DETAILS_FAIL_RAW = """
Sorry, we cannot auto-align the input/output of your dataset with the model.
"""
CHECK_CONFIG_OR_SPLIT_RAW = """
Please check your dataset config or split.
"""
CHECK_LOG_SECTION_RAW = """
Your have successfully submitted a Giskard evaluation. Further details are available in the Logs tab, providing information on your queue status and the current job log.
"""
PREDICTION_SAMPLE_MD = """
<h1 style="text-align: center;">
Model Prediction Sample
</h1>
Here is a sample prediction from your model based on your dataset.
"""
MAPPING_STYLED_ERROR_WARNING = """
<h3 style="text-align: center;color: coral; background-color: #fff0f3; border-radius: 8px; padding: 10px; ">
We cannot auto-align the labels/features of your dataset and model. Please double check the info below and select correct mapping before submission.
</h3>
"""
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 are using
<a href="https://huggingface.co/docs/api-inference/detailed_parameters#text-classification-task">
Hugging Face Inference API
</a>
for the evaluation,
which requires your <a href="https://huggingface.co/settings/tokens">HF token</a>.
<br/>
Your HF token is only used in this Space for your evaluation.
</b>
"""
def get_styled_input(input):
return f"""<h3 style="text-align: center;color: #4ca154; background-color: #e2fbe8; border-radius: 8px; padding: 10px; ">
Sample input: {input}
</h3>"""