Update README.md
Browse files
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("
|
| 27 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 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()
|