dancingninjas commited on
Commit
483dd11
·
1 Parent(s): d574cf4

updating app.py

Browse files
Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ # Title and Subtitle
5
+ st.title('Sentiment Analysis App')
6
+
7
+ pipe=pipeline(model="JS21/finetuning-sentiment-model-10000-samples")
8
+ text=st.text_area('Enter your text')
9
+
10
+ if text:
11
+ out=pipe(text)
12
+ st.table(out)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ transformers
2
+ tensorflow