Spaces:
Sleeping
Sleeping
File size: 309 Bytes
4741cbe b19bb29 |
1 2 3 4 5 6 7 8 9 10 11 |
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() |