ababio commited on
Commit
24f2ce3
β€’
1 Parent(s): 3886fe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -106,13 +106,6 @@ st.write(':sunglasses: :smile: :angry: :disappointed: :fearful: :rage: :weary:
106
  option = ""
107
  user_input = ""
108
 
109
- if option:
110
- user_input = st.text_area('Enter Text to Analyze', value=option)
111
- else:
112
- user_input = st.text_area('Enter Text to Analyze')
113
-
114
- button = st.button("Analyze")
115
-
116
  st.write("Select sample texts analyse emotion πŸ‘‰")
117
  village = st.checkbox("Small village")
118
  life = st.checkbox("Entire life")
@@ -124,6 +117,14 @@ elif life:
124
  option = "She had spent her entire life in this village, raising her children and caring for her garden, which was the most"
125
  else:
126
  option =""
 
 
 
 
 
 
 
 
127
 
128
 
129
  if button and user_input:
 
106
  option = ""
107
  user_input = ""
108
 
 
 
 
 
 
 
 
109
  st.write("Select sample texts analyse emotion πŸ‘‰")
110
  village = st.checkbox("Small village")
111
  life = st.checkbox("Entire life")
 
117
  option = "She had spent her entire life in this village, raising her children and caring for her garden, which was the most"
118
  else:
119
  option =""
120
+
121
+
122
+ if option:
123
+ user_input = st.text_area('Enter Text to Analyze', value=option)
124
+ else:
125
+ user_input = st.text_area('Enter Text to Analyze')
126
+
127
+ button = st.button("Analyze")
128
 
129
 
130
  if button and user_input: