preranar's picture
Update app.py
892dd92
raw
history blame contribute delete
334 Bytes
import numpy as np
import streamlit as st
from transformers import pipeline
text = "This was a masterpiece. Not completely faithful to the books, but enthralling from beginning to end. Might be my favorite of the three."
classifier = pipeline("sentiment-analysis", model="preranar/my_awesome_model")
a = classifier(text)
st.write(a)