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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- 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):
 
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):