Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ model_path = 'viv/AIKIA' # Hugging Face model ID
|
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path) # Tokenizer from Hugging Face
|
8 |
|
9 |
# Load the model from Hugging Face repository
|
10 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
11 |
|
12 |
# Preprocessing function for Greek text
|
13 |
def preprocessing_greek(text):
|
|
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path) # Tokenizer from Hugging Face
|
8 |
|
9 |
# Load the model from Hugging Face repository
|
10 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_path, from_safetensors=False)
|
11 |
|
12 |
# Preprocessing function for Greek text
|
13 |
def preprocessing_greek(text):
|