Spaces:
Paused
Paused
Andrei-Iulian SĂCELEANU
commited on
Commit
•
9b0f71a
1
Parent(s):
731f5de
mixmatch fix
Browse files
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(
|
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)
|