Spaces:
Sleeping
Sleeping
File size: 411 Bytes
e1e9d81 a294fac e1e9d81 a294fac 5eea64e bdd4f95 5c83321 a294fac 5eea64e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from transformers import pipeline
import gradio as gr
pipe = pipeline("sentiment-analysis")
def get_sentiment(input):
return pipe(input)
demo = gr.Interface(fn=get_sentiment,
inputs="text",
outputs=["text"],
title="AI workshop",
description="input a text to get postive or negative "
)
demo.launch()
|