SA-Yur-or commited on
Commit
5d06457
·
1 Parent(s): 2003216

[fix]: change import and usage model in readme

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -71,12 +71,12 @@ We are pleased to achieve the following state of model calibration:
71
  Run following command `pip install generated_text_detector@git+https://github.com/superannotateai/generated_text_detector@releases/tag/v1.0.0`
72
 
73
  ```python
74
- from generated_text_detector.utils.model.roberta_classificator import RobertaClassificator
75
  from transformers import AutoTokenizer
76
  import torch.nn.functional as F
77
 
78
 
79
- model = RobertaClassificator.from_pretrained("SuperAnnotate/roberta-large-llm-content-detector")
80
  tokenizer = AutoTokenizer.from_pretrained("SuperAnnotate/roberta-large-llm-content-detector")
81
 
82
  text_example = "It's not uncommon for people to develop allergies or intolerances to certain foods as they get older. It's possible that you have always had a sensitivity to lactose (the sugar found in milk and other dairy products), but it only recently became a problem for you. This can happen because our bodies can change over time and become more or less able to tolerate certain things. It's also possible that you have developed an allergy or intolerance to something else that is causing your symptoms, such as a food additive or preservative. In any case, it's important to talk to a doctor if you are experiencing new allergy or intolerance symptoms, so they can help determine the cause and recommend treatment."
 
71
  Run following command `pip install generated_text_detector@git+https://github.com/superannotateai/generated_text_detector@releases/tag/v1.0.0`
72
 
73
  ```python
74
+ from generated_text_detector.utils.model.roberta_classifier import RobertaClassifier
75
  from transformers import AutoTokenizer
76
  import torch.nn.functional as F
77
 
78
 
79
+ model = RobertaClassifier.from_pretrained("SuperAnnotate/roberta-large-llm-content-detector")
80
  tokenizer = AutoTokenizer.from_pretrained("SuperAnnotate/roberta-large-llm-content-detector")
81
 
82
  text_example = "It's not uncommon for people to develop allergies or intolerances to certain foods as they get older. It's possible that you have always had a sensitivity to lactose (the sugar found in milk and other dairy products), but it only recently became a problem for you. This can happen because our bodies can change over time and become more or less able to tolerate certain things. It's also possible that you have developed an allergy or intolerance to something else that is causing your symptoms, such as a food additive or preservative. In any case, it's important to talk to a doctor if you are experiencing new allergy or intolerance symptoms, so they can help determine the cause and recommend treatment."