TrustedLLM / LLMDet

LLMDet is a text detection tool that can identify which generated sources the text came from (e.g. large language model or human-write).
MIT License
50 stars 9 forks source link

Update detector.py #10

Closed randomguyingithub closed 5 months ago

randomguyingithub commented 5 months ago

Comment wrong indention (line 88) causing indention error

Example error:

Traceback (most recent call last):
  File "C:\Users\<userprofile>\Documents\samplescript.py", line 1, in <module>
    import llmdet
  File "C:\Users\<userprofile>\miniconda3\envs\llmdetect\lib\site-packages\llmdet\__init__.py", line 23, in <module>
    from .detector import load_probability
  File "C:\Users\<userprofile>\miniconda3\envs\llmdetect\lib\site-packages\llmdet\detector.py", line 93
    if isinstance(text, str):
                             ^
IndentationError: unindent does not match any outer indentation level