Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,8 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
-
|
6 |
-
|
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):
|