| language: | |
| - en | |
| license: apache-2.0 | |
| tags: | |
| - text-classification | |
| - machine-generated-text-detection | |
| - ai-generated-text-detection | |
| - wavedetect | |
| pipeline_tag: text-classification | |
| # WaveDetect Inference | |
| Usage: | |
| ```python | |
| from wavedetect_hf import WaveDetectPredictor | |
| predictor = WaveDetectPredictor(model_dir="hf_wavedetect") | |
| result = predictor.predict("This is a sample text to be detected.") | |
| print(result) | |
| ``` | |
| Run the example directly: | |
| ```bash | |
| python wavedetect_hf.py | |
| ``` |