emirkocak commited on
Commit
8d6f7ae
1 Parent(s): 2f33e52

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +15 -15
test.py CHANGED
@@ -37,49 +37,49 @@ label_to_name = {0:"INSULT",
37
 
38
  custom_object = {"TFConvBertModel": TFConvBertModel, "K":K}
39
 
40
- second_model_1_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="2inci_model_mc4_emir_aug_data_dropout01_0.h5")
41
  second_model_1 = tf.keras.models.load_model(second_model_1_path, custom_objects=custom_object, compile=False)
42
 
43
- second_model_2_model_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="2inci_model_mc4_emir_aug_data_dropout01_1.h5")
44
  second_model_2 = tf.keras.models.load_model(second_model_2_model_path, custom_objects=custom_object, compile=False)
45
 
46
- second_model_3_model_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="2inci_model_mc4_emir_aug_data_dropout01_2.h5")
47
  second_model_3 = tf.keras.models.load_model(second_model_3_model_path, custom_objects=custom_object, compile=False)
48
 
49
- second_model_4_model_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="2inci_model_mc4_emir_aug_data_dropout01_3.h5")
50
  second_model_4 = tf.keras.models.load_model(second_model_4_model_path, custom_objects=custom_object, compile=False)
51
 
52
- second_model_5_model_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="2inci_model_mc4_emir_aug_data_dropout01_4.h5")
53
  second_model_5 = tf.keras.models.load_model(second_model_5_model_path, custom_objects=custom_object, compile=False)
54
 
55
- third_model_1_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="3uncu_model_mc4_emir_aug_data_0.h5")
56
  third_model_1 = tf.keras.models.load_model(third_model_1_path, custom_objects=custom_object, compile=False)
57
 
58
- third_model_2_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="3uncu_model_mc4_emir_aug_data_1.h5")
59
  third_model_2 = tf.keras.models.load_model(third_model_2_path, custom_objects=custom_object, compile=False)
60
 
61
- third_model_3_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="3uncu_model_mc4_emir_aug_data_2.h5")
62
  third_model_3 = tf.keras.models.load_model(third_model_3_path, custom_objects=custom_object, compile=False)
63
 
64
- third_model_4_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="3uncu_model_mc4_emir_aug_data_3.h5")
65
  third_model_4 = tf.keras.models.load_model(third_model_4_path, custom_objects=custom_object, compile=False)
66
 
67
- third_model_5_path = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="3uncu_model_mc4_emir_aug_data_4.h5")
68
  third_model_5 = tf.keras.models.load_model(third_model_5_path, custom_objects=custom_object, compile=False)
69
 
70
- model_path1 = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="model0.h5")
71
  first_model_1 = tf.keras.models.load_model(model_path1, custom_objects=custom_object, compile=False)
72
 
73
- model_path2 = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="model1.h5")
74
  first_model_2 = tf.keras.models.load_model(model_path2, custom_objects=custom_object, compile=False)
75
 
76
- model_path3 = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="model2.h5")
77
  first_model_3 = tf.keras.models.load_model(model_path3, custom_objects=custom_object, compile=False)
78
 
79
- model_path4 = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="model3.h5")
80
  first_model_4 = tf.keras.models.load_model(model_path4, custom_objects=custom_object, compile=False)
81
 
82
- model_path5 = hf_hub_download(repo_id="emirkocak/tekno_deneme_models", filename="model4.h5")
83
  first_model_5 = tf.keras.models.load_model(model_path5, custom_objects=custom_object, compile=False)
84
 
85
  def bert_encode(data):
 
37
 
38
  custom_object = {"TFConvBertModel": TFConvBertModel, "K":K}
39
 
40
+ second_model_1_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="2inci_model_mc4_emir_aug_data_dropout01_0.h5")
41
  second_model_1 = tf.keras.models.load_model(second_model_1_path, custom_objects=custom_object, compile=False)
42
 
43
+ second_model_2_model_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="2inci_model_mc4_emir_aug_data_dropout01_1.h5")
44
  second_model_2 = tf.keras.models.load_model(second_model_2_model_path, custom_objects=custom_object, compile=False)
45
 
46
+ second_model_3_model_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="2inci_model_mc4_emir_aug_data_dropout01_2.h5")
47
  second_model_3 = tf.keras.models.load_model(second_model_3_model_path, custom_objects=custom_object, compile=False)
48
 
49
+ second_model_4_model_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="2inci_model_mc4_emir_aug_data_dropout01_3.h5")
50
  second_model_4 = tf.keras.models.load_model(second_model_4_model_path, custom_objects=custom_object, compile=False)
51
 
52
+ second_model_5_model_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="2inci_model_mc4_emir_aug_data_dropout01_4.h5")
53
  second_model_5 = tf.keras.models.load_model(second_model_5_model_path, custom_objects=custom_object, compile=False)
54
 
55
+ third_model_1_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="3uncu_model_mc4_emir_aug_data_0.h5")
56
  third_model_1 = tf.keras.models.load_model(third_model_1_path, custom_objects=custom_object, compile=False)
57
 
58
+ third_model_2_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="3uncu_model_mc4_emir_aug_data_1.h5")
59
  third_model_2 = tf.keras.models.load_model(third_model_2_path, custom_objects=custom_object, compile=False)
60
 
61
+ third_model_3_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="3uncu_model_mc4_emir_aug_data_2.h5")
62
  third_model_3 = tf.keras.models.load_model(third_model_3_path, custom_objects=custom_object, compile=False)
63
 
64
+ third_model_4_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="3uncu_model_mc4_emir_aug_data_3.h5")
65
  third_model_4 = tf.keras.models.load_model(third_model_4_path, custom_objects=custom_object, compile=False)
66
 
67
+ third_model_5_path = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="3uncu_model_mc4_emir_aug_data_4.h5")
68
  third_model_5 = tf.keras.models.load_model(third_model_5_path, custom_objects=custom_object, compile=False)
69
 
70
+ model_path1 = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="model0.h5")
71
  first_model_1 = tf.keras.models.load_model(model_path1, custom_objects=custom_object, compile=False)
72
 
73
+ model_path2 = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="model1.h5")
74
  first_model_2 = tf.keras.models.load_model(model_path2, custom_objects=custom_object, compile=False)
75
 
76
+ model_path3 = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="model2.h5")
77
  first_model_3 = tf.keras.models.load_model(model_path3, custom_objects=custom_object, compile=False)
78
 
79
+ model_path4 = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="model3.h5")
80
  first_model_4 = tf.keras.models.load_model(model_path4, custom_objects=custom_object, compile=False)
81
 
82
+ model_path5 = hf_hub_download(repo_id="emirkocak/TRT_Data_Warriors_tackling_hate_speech", filename="model4.h5")
83
  first_model_5 = tf.keras.models.load_model(model_path5, custom_objects=custom_object, compile=False)
84
 
85
  def bert_encode(data):