Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
3 |
|
4 |
-
model = AutoModelForSequenceClassification.from_pretrained("savasy/
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("savasy/
|
6 |
|
7 |
def greet(text):
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
|
3 |
|
4 |
+
model = AutoModelForSequenceClassification.from_pretrained("savasy/bert-base-turkish-sentiment-cased")
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("savasy/bert-base-turkish-sentiment-cased")
|
6 |
|
7 |
def greet(text):
|
8 |
pipe = pipeline("sentiment-analysis", tokenizer=tokenizer, model=model)
|