MJ commited on
Commit
f154ee6
·
1 Parent(s): 4e4d22d

Fixed text area not having default text

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ models_available = {"Roberta Large English": "siebert/sentiment-roberta-large-en
17
 
18
  st.title("Sentiment Analysis Web Application")
19
  text_input = st.text_area(
20
- label="Enter the text to analyze", placeholder="I Love Pizza")
21
  model_picked = st.selectbox(
22
  "Choose a model to run on", options=models_available.keys())
23
 
24
- st.button("Submit", run_model())
 
17
 
18
  st.title("Sentiment Analysis Web Application")
19
  text_input = st.text_area(
20
+ label="Enter the text to analyze", value="I Love Pizza")
21
  model_picked = st.selectbox(
22
  "Choose a model to run on", options=models_available.keys())
23
 
24
+ st.button("Submit", on_click=run_model())