Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/nli_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import OpenAttack
import transformers
import datasets
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

class NLIWrapper(OpenAttack.classifiers.Classifier):
def __init__(self, model : OpenAttack.classifiers.Classifier):
Expand Down Expand Up @@ -48,4 +50,4 @@ def main():
attack_eval.eval(dataset, visualize=True)

if __name__ == "__main__":
main()
main()