monsws's picture
Update app.py
f0b3788
raw
history blame contribute delete
457 Bytes
import gradio as gr
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="monsws/ReviewsLibrosAnalisisSentimientos")
def get_sentiment(input_text):
return pipe(input_text)
iface = gr.Interface(fn= get_sentiment, inputs="text", outputs=['text'], title='Analisis de Reseñas de Libros', description="Dada una reseña, obten si es positiva/negativa/neutral")
iface.launch(inline=False)