emirkocak commited on
Commit
b6c534d
1 Parent(s): 88fb58b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,13 +4,13 @@ import gradio as gr
4
  def gradio_comment(comment):
5
 
6
 
7
- result = test_predict(comment)
8
 
9
  if result == 'OTHER':
10
  text = "NOT OFFENSİVE-OTHER"
11
 
12
  else:
13
- text = f"OFFENSİVE/{result}"
14
 
15
 
16
 
 
4
  def gradio_comment(comment):
5
 
6
 
7
+ result = test_predict(comment)[0]
8
 
9
  if result == 'OTHER':
10
  text = "NOT OFFENSİVE-OTHER"
11
 
12
  else:
13
+ text = f"OFFENSİVE-{result}"
14
 
15
 
16