Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the bias detection model (this can be changed to other models)
|
5 |
-
classifier = pipeline("text-classification", model="d4data/bias-detection-model")
|
|
|
6 |
|
7 |
def analyze_bias(text):
|
8 |
result = classifier(text)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the bias detection model (this can be changed to other models)
|
5 |
+
classifier = pipeline("text-classification", model="d4data/bias-detection-model", from_tf=True)
|
6 |
+
|
7 |
|
8 |
def analyze_bias(text):
|
9 |
result = classifier(text)
|