gabrielchua commited on
Commit
d7bae94
·
verified ·
1 Parent(s): 4c7a460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,12 +10,12 @@ from typing import List, Dict, Any
10
 
11
  # Define categories with sub-level information
12
  CATEGORIES = {
13
- 'hateful': ['level_1_discriminatory', 'level_2_hate_speech'],
14
  'insults': ['insults'],
15
- 'sexual': ['level_1_not_appropriate_for_minors', 'level_2_not_appropriate_for_all_ages'],
16
  'physical_violence': ['physical_violence'],
17
- 'self_harm': ['level_1_self_harm_intent', 'level_2_self_harm_action'],
18
- 'all_other_misconduct': ['level_1_not_socially_accepted', 'level_2_illegal_activities']
19
  }
20
 
21
  def get_embeddings(texts: List[str], model: str = "text-embedding-3-large") -> np.ndarray:
 
10
 
11
  # Define categories with sub-level information
12
  CATEGORIES = {
13
+ 'hateful': ['hateful_lvl_1_discriminatory', 'hateful_lvl_2_hate_speech'],
14
  'insults': ['insults'],
15
+ 'sexual': ['sexual_lvl_1_not_appropriate_for_minors', 'sexual_lvl_2_not_appropriate_for_all'],
16
  'physical_violence': ['physical_violence'],
17
+ 'self_harm': ['self_harm_lvl_1_intent', 'self_harm_lvl_2_action'],
18
+ 'all_other_misconduct': ['all_other_misconduct_lvl_1_not_socially_accepted', 'all_other_misconduct_lvl_2_illegal']
19
  }
20
 
21
  def get_embeddings(texts: List[str], model: str = "text-embedding-3-large") -> np.ndarray: