Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ dictionary={0:'not-hateful',
|
|
8 |
|
9 |
|
10 |
def greet(text, dictionary=dictionary):
|
11 |
-
|
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,
|