Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load pre-trained model for CoLA (linguistic acceptability)
|
5 |
-
model_name = "
|
6 |
classifier = pipeline("text-classification", model=model_name)
|
7 |
|
8 |
def classify_sentence(sentence):
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load pre-trained model for CoLA (linguistic acceptability)
|
5 |
+
model_name = "sentence-transformers/all-MiniLM-L6-v2"
|
6 |
classifier = pipeline("text-classification", model=model_name)
|
7 |
|
8 |
def classify_sentence(sentence):
|