Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,5 +8,5 @@ def greet(text):
|
|
8 |
unbiased = Detoxify('unbiased').predict(text)
|
9 |
return {'original':original,'unbiased':unbiased}
|
10 |
|
11 |
-
iface = gr.Interface(fn=greet, inputs="
|
12 |
iface.launch(show_api='true')
|
|
|
8 |
unbiased = Detoxify('unbiased').predict(text)
|
9 |
return {'original':original,'unbiased':unbiased}
|
10 |
|
11 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text",api_name='classify')
|
12 |
iface.launch(show_api='true')
|