Spaces:
Runtime error
Runtime error
bentrevett
commited on
Commit
•
f85c94c
1
Parent(s):
33f47d9
added default text
Browse files
app.py
CHANGED
@@ -21,7 +21,9 @@ st.set_page_config(page_title="Emotion Prediction")
|
|
21 |
st.title("Emotion Prediction")
|
22 |
st.write("Type text into the text box and then press 'Predict' to get the predicted emotion.")
|
23 |
|
24 |
-
|
|
|
|
|
25 |
submit = st.button('Predict')
|
26 |
|
27 |
with st.spinner("Loading model..."):
|
|
|
21 |
st.title("Emotion Prediction")
|
22 |
st.write("Type text into the text box and then press 'Predict' to get the predicted emotion.")
|
23 |
|
24 |
+
default_text = "I really love using HuggingFace Spaces!"
|
25 |
+
|
26 |
+
text = st.text_area('Enter text here:', value=default_text)
|
27 |
submit = st.button('Predict')
|
28 |
|
29 |
with st.spinner("Loading model..."):
|