TEST_translate / app.py
GiladtheFixer's picture
Create app.py
6e05fea
raw
history blame
241 Bytes
import gradio as gr
from transformers import pipeline
pipe=pipeline('sentiment-analysis')
def sentiment_calssifir(text):
return pipe(text)
demo = gr.Interface(fn=sentiment_calssifir, inputs="text", outputs="json")
demo.launch()