joulammous commited on
Commit
c234c94
·
unverified ·
1 Parent(s): 3bbc851

Add files via upload

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Libraries
3
+
4
+ import streamlit as st
5
+ import tensorflow as tf
6
+ from transformers import pipeline
7
+
8
+ # Milestone 2
9
+
10
+ sentiment_pipeline = pipeline("sentiment-analysis", model = "siebert/sentiment-roberta-large-english")
11
+ data = ["I love you", "I hate you"]
12
+ sentiment_pipeline(data)
13
+
14
+