Files changed (1) hide show
  1. wordings.py +11 -15
wordings.py CHANGED
@@ -2,23 +2,23 @@ INTRODUCTION_MD = """
2
  <h1 style="text-align: center;">
3
  🐢Giskard Evaluator
4
  </h1>
5
- 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.
6
  """
7
  CONFIRM_MAPPING_DETAILS_MD = """
8
  <h1 style="text-align: center;">
9
  Confirm Pre-processing Details
10
  </h1>
11
- 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.
12
  """
13
  CONFIRM_MAPPING_DETAILS_FAIL_MD = """
14
  <h1 style="text-align: center;">
15
  Confirm Pre-processing Details
16
  </h1>
17
- Sorry, we cannot align the input/output of your dataset with the model. <b>Pleaser double check your model and dataset.</b>
18
  """
19
 
20
  CONFIRM_MAPPING_DETAILS_FAIL_RAW = """
21
- Sorry, we cannot auto-align the input/output of your dataset with the model.
22
  """
23
 
24
  CHECK_CONFIG_OR_SPLIT_RAW = """
@@ -33,12 +33,12 @@ PREDICTION_SAMPLE_MD = """
33
  <h1 style="text-align: center;">
34
  Model Prediction Sample
35
  </h1>
36
- Here is a sample prediction from your model based on your dataset.
37
  """
38
 
39
  MAPPING_STYLED_ERROR_WARNING = """
40
  <h3 style="text-align: center;color: orange; background-color: #fff0f3; border-radius: 8px; padding: 10px; ">
41
- ⚠️ We cannot auto-align the labels/features of your dataset and model. Please double check the info below before your submission.
42
  </h3>
43
  """
44
 
@@ -53,22 +53,18 @@ NOT_TEXT_CLASSIFICATION_MODEL_RAW = """
53
  """
54
 
55
  USE_INFERENCE_API_TIP = """
56
- We recommend to use
57
  <a href="https://huggingface.co/docs/api-inference/detailed_parameters#text-classification-task">
58
  Hugging Face Inference API
59
  </a>
60
- for the evaluation,
61
- which requires your <a href="https://huggingface.co/settings/tokens">HF token</a>.
62
  <br/>
63
- Otherwise, an
64
  <a href="https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.TextClassificationPipeline">
65
- HF pipeline
66
  </a>
67
- will be created and run in this Space. It takes more time to get the result.
68
  <br/>
69
- <b>
70
- Do not worry, your HF token is only used in this Space for your evaluation.
71
- </b>
72
  """
73
 
74
  HF_TOKEN_INVALID_STYLED= """
 
2
  <h1 style="text-align: center;">
3
  🐢Giskard Evaluator
4
  </h1>
5
+ Welcome to the Giskard Evaluator Space! Get a model vulnerability report immediately by simply sharing your model and dataset id below.
6
  """
7
  CONFIRM_MAPPING_DETAILS_MD = """
8
  <h1 style="text-align: center;">
9
  Confirm Pre-processing Details
10
  </h1>
11
+ Make sure the output variable's labels and the input variable's name are accurately mapped across both the dataset and the model.
12
  """
13
  CONFIRM_MAPPING_DETAILS_FAIL_MD = """
14
  <h1 style="text-align: center;">
15
  Confirm Pre-processing Details
16
  </h1>
17
+ We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. <b>Please manually check the mapping below.</b>
18
  """
19
 
20
  CONFIRM_MAPPING_DETAILS_FAIL_RAW = """
21
+ We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. <b>Please manually check the mapping below.</b>
22
  """
23
 
24
  CHECK_CONFIG_OR_SPLIT_RAW = """
 
33
  <h1 style="text-align: center;">
34
  Model Prediction Sample
35
  </h1>
36
+ Here's a sample of your model's prediction on an example from the dataset.
37
  """
38
 
39
  MAPPING_STYLED_ERROR_WARNING = """
40
  <h3 style="text-align: center;color: orange; background-color: #fff0f3; border-radius: 8px; padding: 10px; ">
41
+ ⚠️ We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. <b>Please manually check the mapping below.</b>
42
  </h3>
43
  """
44
 
 
53
  """
54
 
55
  USE_INFERENCE_API_TIP = """
56
+ To speed up the evaluation, we recommend using the
57
  <a href="https://huggingface.co/docs/api-inference/detailed_parameters#text-classification-task">
58
  Hugging Face Inference API
59
  </a>
60
+ . Please input your <a href="https://huggingface.co/settings/tokens">Hugging Face token</a> to do so.
 
61
  <br/>
62
+ Alternatively, a
63
  <a href="https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.TextClassificationPipeline">
64
+ Hugging Face pipeline
65
  </a>
66
+ will be run in this Space. This will take significantly more time to get results than via the Hugging Face Inference API.
67
  <br/>
 
 
 
68
  """
69
 
70
  HF_TOKEN_INVALID_STYLED= """