viv commited on
Commit
4beda9e
·
verified ·
1 Parent(s): e3a5a1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,11 +3,10 @@ import torch
3
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
 
5
  # Load the model and tokenizer from Hugging Face Hub
6
- 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, from_safetensors=False)
11
 
12
  # Preprocessing function for Greek text
13
  def preprocessing_greek(text):
 
3
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
 
5
  # Load the model and tokenizer from Hugging Face Hub
6
+ tokenizer = AutoTokenizer.from_pretrained('viv/AIKIA') # Tokenizer from Hugging Face
 
7
 
8
  # Load the model from Hugging Face repository
9
+ model = AutoModelForSequenceClassification.from_pretrained('viv/AIKIA')
10
 
11
  # Preprocessing function for Greek text
12
  def preprocessing_greek(text):