Spaces:
Sleeping
Sleeping
sunil23391
commited on
Commit
•
9b07141
1
Parent(s):
58843d0
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
-
import os
|
2 |
-
os.system('pip install transformers')
|
3 |
import streamlit as st
|
4 |
import transformers
|
5 |
|
6 |
-
|
7 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# import os
|
2 |
+
# os.system('pip install transformers')
|
3 |
import streamlit as st
|
4 |
import transformers
|
5 |
|
6 |
+
|
7 |
+
txt = st.text_area(
|
8 |
+
"Text to analyze",
|
9 |
+
"It was the best of times, it was the worst of times, it was the age of "
|
10 |
+
"wisdom, it was the age of foolishness, it was the epoch of belief, it "
|
11 |
+
"was the epoch of incredulity, it was the season of Light, it was the "
|
12 |
+
"season of Darkness, it was the spring of hope, it was the winter of "
|
13 |
+
"despair, (...)",
|
14 |
+
)
|
15 |
+
|
16 |
+
st.write(f'You wrote {len(txt)} characters.')
|