Spaces:
Sleeping
Sleeping
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) |