-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When I use the following model to inference,
code1 is a normal code, and code2 is a random string, why the output is true?
from transformers import pipeline
pipe = pipeline(model="Lazyhope/python-clone-detection", trust_remote_code=True)
code1 = """h = int(input()) ans = 0 n_enemy = 1 while h > 1: h //= 2 ans += n_enemy n_enemy *= 2 if h == 1: ans += n_enemy print(ans)"""
code2 = """123456789"""
is_clone = pipe((code1, code2))
is_clone
{False: 0.01862591877579689, True: 0.9813740849494934}
Metadata
Metadata
Assignees
Labels
No labels