We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I use the following model to inference,
code1 is a normal code, and code2 is a random string, why the output is true?
{False: 0.01862591877579689, True: 0.9813740849494934}
The text was updated successfully, but these errors were encountered: