-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
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
Different detection result on localhost and the server #39
Comments
@SnoopyDevelops Did you ever make progress on this? Seeing the same issues here. |
Unfortunately, no |
I can also confirm this as well, where the server result is different than both the |
Was anyone able to get consistent results between localhost and the website? Tried both models and still get different results. |
The trick to getting the same results is apparently to use the same Python dependencies. The model that is being used on HuggingSpace really is the same I've written up full instructions in this Ask Ubuntu answer. After using the HuggingSpace Dockerfile as a guide, my local version gives the same results as https://openai-openai-detector.hf.space/. Thanks to @CoconutMacaroon for confirming this. Note that there are currently a few known issues with the HuggingFace OpenAI version:
The first two of these, at least, are fixed in a change to req.open('GET', window.location.href + '?' + textbox.value, true); Use: const maxCharacters = 16300;
req.open('GET', `?${encodeURIComponent(textbox.value)}`.slice(0,maxCharacters), true); Thanks to @makyen (Stack Overflow Mod) for assistance with this. I have a Space with these changes that you can use as a basis for your local copy (using the Dockerfile and cloning with Keep in mind that, just as the OpenAI version, you won't be able to use it from that Space URL. You'll need to use the top level URL instead. Again, it's mainly for you to clone locally (or as a new Space if desired); it's going to be really slow at times on the free CPU tier. |
Tested with second sample of ChatGPT and the detection result is not same with server.
The test result of https://openai-openai-detector.hf.space/
Test result with
roberta-base
model on localhostTest result with
roberta-large
model on localhostThe text was updated successfully, but these errors were encountered: