nickprock commited on
Commit
5d46de5
1 Parent(s): bb55b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ dictionary={0:'not-hateful',
8
 
9
 
10
  def greet(text, dictionary=dictionary):
11
- preds = model(text)
12
  return dictionary[response[0]][label]
13
 
14
  demo = gr.Interface(fn=greet,
 
8
 
9
 
10
  def greet(text, dictionary=dictionary):
11
+ response = model(text)
12
  return dictionary[response[0]][label]
13
 
14
  demo = gr.Interface(fn=greet,