Spaces:
Sleeping
Sleeping
import gradio as gr | |
from transformers import pipeline | |
sentiment=pipeline("sentiment-analysis") | |
def ana_sent(input_text): | |
return sentiment(input_text) | |
iface=gr.Interface(fn=ana_sent,inputs="text",outputs=['text'],title='Analyse des sentiment',description="entrer un texte en Anglais ") | |
iface.launch(inline=False) |