Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| pipe = pipeline("sentiment-analysis") | |
| def porn(text): | |
| return pipe(text) | |
| demo = gr.Interface(fn=porn, inputs="text", outputs="json") | |
| demo.launch() |