Spaces:
Runtime error
Runtime error
joulammous
commited on
Add files via upload
Browse files
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 |
+
|