byesayuri commited on
Commit
52d1b38
·
verified ·
1 Parent(s): f582f88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def predict_toxicity(text):
45
  </div>
46
  """
47
 
48
- return result_html, {"Toxic (有毒)": toxic_prob, "Normal (正常)": non_toxic_prob}
 
49
 
50
  with gr.Blocks(theme=gr.themes.Soft(), title="AI Toxic Comment Detector") as demo:
51
 
 
45
  </div>
46
  """
47
 
48
+ # Modified here: Removed Chinese characters
49
+ return result_html, {"Toxic": toxic_prob, "Normal": non_toxic_prob}
50
 
51
  with gr.Blocks(theme=gr.themes.Soft(), title="AI Toxic Comment Detector") as demo:
52