Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
transcriber = pipeline(
|
5 |
-
|
6 |
-
texts = transcriber(audio_filenames)
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
# out = transcriber(text)
|
15 |
-
# st.json(out)
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
transcriber = pipeline(task="sentiment-analysis")
|
5 |
+
text = st.text_input('Label', 'enter some text!')
|
|
|
6 |
|
7 |
+
if text:
|
8 |
+
out = transcriber(text)
|
9 |
+
st.json(out)
|
10 |
|
11 |
+
st.file_uploader("Choose a CSV file", accept_multiple_files=True)
|
12 |
+
bytes_data = uploaded_file.read()
|
13 |
+
st.write("filename:", uploaded_file.name)
|
14 |
+
st.write(bytes_data)
|
|
|
|