Prueba / app.py
MelisaRS's picture
add test
b138f57 verified
raw
history blame contribute delete
362 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ProsusAI/finbert")
# Texto de ejemplo
texto = "The company's stock price increased by 5% after the quarterly earnings report."
# Usamos el pipeline para clasificar el texto
resultado = pipe(texto)
# Mostramos el resultado
print(resultado)