Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,4 +15,4 @@ async def moderate_text(input: TextInput):
|
|
15 |
return {r["label"]: r["score"] for r in results}
|
16 |
|
17 |
# Gradio interface to expose the model API via a Space
|
18 |
-
gr.Interface(fn=moderate_text, inputs="text", outputs="json").launch(
|
|
|
15 |
return {r["label"]: r["score"] for r in results}
|
16 |
|
17 |
# Gradio interface to expose the model API via a Space
|
18 |
+
gr.Interface(fn=moderate_text, inputs="text", outputs="json").launch()
|