Spaces:
Runtime error
Runtime error
Commit
·
88055ae
1
Parent(s):
a593840
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
-
st.write(x, 'squared is', x * x)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
from streamlit_player import st_player
|
3 |
+
from transformers import pipeline
|
4 |
|
5 |
x = st.slider('Select a value')
|
6 |
+
st.write(x, 'squared is', x * x)
|
7 |
+
|
8 |
+
|
9 |
+
def tester(text):
|
10 |
+
#classifier = pipeline("sentiment-analysis", arpanghoshal/EmoRoBERTa)
|
11 |
+
#classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
|
12 |
+
classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
|
13 |
+
results = classifier(text)
|
14 |
+
st.write(results)
|
15 |
+
|
16 |
+
text = st.text_input('First name')
|
17 |
+
|