Andrei-Iulian SĂCELEANU commited on
Commit
9b0f71a
1 Parent(s): 731f5de

mixmatch fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def ssl_predict(in_text, model_type):
41
  model = FixMatchTune(encoder_name="andrei-saceleanu/ro-offense-freematch")
42
  model.cls_head.load_weights("./checkpoints/freematch_tune")
43
  elif model_type == "mixmatch":
44
- model = MixMatch(encoder_name="andrei-saceleanu/ro-offense-mixmatch")
45
  model.cls_head.load_weights("./checkpoints/mixmatch")
46
 
47
  preds, _ = model([toks["input_ids"],toks["attention_mask"]], training=False)
 
41
  model = FixMatchTune(encoder_name="andrei-saceleanu/ro-offense-freematch")
42
  model.cls_head.load_weights("./checkpoints/freematch_tune")
43
  elif model_type == "mixmatch":
44
+ model = MixMatch(bert_model="andrei-saceleanu/ro-offense-mixmatch")
45
  model.cls_head.load_weights("./checkpoints/mixmatch")
46
 
47
  preds, _ = model([toks["input_ids"],toks["attention_mask"]], training=False)