File size: 277 Bytes
c234c94
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# Libraries

import streamlit as st
import tensorflow as tf
from transformers import pipeline

# Milestone 2

sentiment_pipeline = pipeline("sentiment-analysis", model = "siebert/sentiment-roberta-large-english")
data = ["I love you", "I hate you"]
sentiment_pipeline(data)