ahans30 / Binoculars

[ICML 2024] Binoculars: Zero-Shot Detection of LLM-Generated Text
https://arxiv.org/abs/2401.12070
BSD 3-Clause "New" or "Revised" License
189 stars 26 forks source link

Fix AttributeError on model names #10

Closed aesuli closed 5 months ago

aesuli commented 5 months ago

When the ValueError exception should be raised, it raises instead:

AttributeError: 'str' object has no attribute 'name_of_path'

Because model_id_1 and model_id_2 are strings, with no attribute 'name_of_path'. Directly using the strings fixed the issue.

ahans30 commented 5 months ago

Thanks for spotting this and sending PR!