Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,10 +3,9 @@ import torch
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
|
| 5 |
# Load the model and tokenizer from Hugging Face Hub
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
model = AutoModelForSequenceClassification.from_pretrained('viv/AIKIA')
|
| 10 |
|
| 11 |
# Preprocessing function for Greek text
|
| 12 |
def preprocessing_greek(text):
|
|
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
|
| 5 |
# Load the model and tokenizer from Hugging Face Hub
|
| 6 |
+
model_path = "viv/AIKIA" # Update this to your model path if needed
|
| 7 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 8 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
|
|
|
| 9 |
|
| 10 |
# Preprocessing function for Greek text
|
| 11 |
def preprocessing_greek(text):
|