AlexOuellet commited on
Commit
721ae28
·
verified ·
1 Parent(s): e3ef77b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)