viv commited on
Commit
e5c074c
1 Parent(s): 4daac83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -2,10 +2,8 @@ import gradio as gr
2
  import torch
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):
 
2
  import torch
3
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
 
5
+ tokenizer = AutoTokenizer.from_pretrained("viv/AIKIA")
6
+ model = AutoModelForSequenceClassification.from_pretrained("viv/AIKIA")
 
 
7
 
8
  # Preprocessing function for Greek text
9
  def preprocessing_greek(text):