SolubleFish commited on
Commit
d3a1838
·
verified ·
1 Parent(s): 09b8414

Rename App.py to app.py

Browse files
Files changed (2) hide show
  1. App.py +0 -4
  2. app.py +9 -0
App.py DELETED
@@ -1,4 +0,0 @@
1
- import streamlit as st
2
-
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from tranformers import pipeline
3
+
4
+ pipe=pipeline('sentiment-analysis')
5
+ text = st.text_area('give me your text !')
6
+
7
+ if text:
8
+ out = pipe(text)
9
+ st.json(out)