Spaces:
Sleeping
Sleeping
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() | |