Spaces:
Sleeping
Sleeping
Commit
·
5b371ce
1
Parent(s):
689533a
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
model_name = 'gngpostalsrvc/COHeN'
|
2 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
3 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
|
1 |
+
import re
|
2 |
+
import gradio as gr
|
3 |
+
from transformers import (
|
4 |
+
AutoModelForSequenceClassification,
|
5 |
+
AutoTokenizer,
|
6 |
+
pipeline
|
7 |
+
)
|
8 |
+
from transformers_interpret import SequenceClassificationExplainer
|
9 |
+
from hebrewtools.functions import sbl_normalization
|
10 |
+
|
11 |
model_name = 'gngpostalsrvc/COHeN'
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|