Spaces:
Sleeping
Sleeping
File size: 254 Bytes
1961c08 a4a7478 1961c08 a4a7478 08831e4 a4a7478 08831e4 1961c08 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from transformers import pipeline
sentiment_pipeline = pipeline("sentiment-analysis")
async def process(text):
return await sentiment_pipeline(text)
demo = gr.Interface(fn=process, inputs="text", outputs="json")
demo.launch()
|