Jurabek commited on
Commit
c00be5a
·
1 Parent(s): 8a5d6d0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -23,11 +23,10 @@ Here's how to use the model in Python:
23
  # Load the model
24
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
25
 
26
- model = AutoModelForSequenceClassification.from_pretrained("your-username/language_detection_model")
27
- tokenizer = AutoTokenizer.from_pretrained("your-username/language_detection_model")
28
 
29
- # Preprocess your text and make predictions
30
- text = "This is an example text."
31
- inputs = tokenizer(text, return_tensors="pt")
32
  outputs = model(**inputs)
33
  predicted_class = outputs.logits.argmax().item()
 
23
  # Load the model
24
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
25
 
26
+ model = AutoModelForSequenceClassification.from_pretrained("Jurabek/language_identifications"")
27
+ tokenizer = AutoTokenizer.from_pretrained("Jurabek/language_identifications"")
28
 
29
+
30
+ inputs = tokenizer(audio, return_tensors="pt")
 
31
  outputs = model(**inputs)
32
  predicted_class = outputs.logits.argmax().item()