Spaces:
Sleeping
Sleeping
File size: 206 Bytes
8489be4 |
1 2 3 4 5 6 7 8 9 10 |
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() |