kopia lustrzana https://github.com/thinkst/zippy
rodzic
0ecf5ef8f8
commit
a9a15cc540
|
@ -37,4 +37,4 @@ jobs:
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
#continue-on-error: true
|
#continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
pytest --junitxml=junit.xml --tb=no test_lzma_detect.py || genbadge tests -i junit.xml -t 75 -o badge.svg
|
pytest --junitxml=junit.xml --tb=no test_zippy_detect.py || genbadge tests -i junit.xml -t 75 -o badge.svg
|
||||||
|
|
|
@ -6,7 +6,7 @@ from sklearn.metrics import roc_curve, auc
|
||||||
import re
|
import re
|
||||||
from junitparser import JUnitXml
|
from junitparser import JUnitXml
|
||||||
|
|
||||||
MODELS = ['lzma', 'roberta', 'gptzero', 'openai']
|
MODELS = ['zippy', 'roberta', 'gptzero', 'openai']
|
||||||
SKIPCASES = ['gpt2', 'gpt3']
|
SKIPCASES = ['gpt2', 'gpt3']
|
||||||
|
|
||||||
MAX_PER_CASE = 500
|
MAX_PER_CASE = 500
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import pytest, os, jsonlines
|
import pytest, os, jsonlines
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
from lzma_detect import run_on_file_chunked, run_on_text_chunked, PRELUDE_STR, LzmaLlmDetector
|
from zippy import run_on_file_chunked, run_on_text_chunked, PRELUDE_STR, LzmaLlmDetector
|
||||||
|
|
||||||
AI_SAMPLE_DIR = 'samples/llm-generated/'
|
AI_SAMPLE_DIR = 'samples/llm-generated/'
|
||||||
HUMAN_SAMPLE_DIR = 'samples/human-generated/'
|
HUMAN_SAMPLE_DIR = 'samples/human-generated/'
|
Ładowanie…
Reference in New Issue