ppsingh commited on
Commit
dd3f3bf
·
1 Parent(s): badd1c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ for line in data:
7
 
8
  title = st.text_input('Movie title', 'Life of Brian')
9
  if st.button('Submit'):
10
- data.loc[len(data)] = title
 
11
  st.write(data)
12
 
13
  for line in data:
 
7
 
8
  title = st.text_input('Movie title', 'Life of Brian')
9
  if st.button('Submit'):
10
+ new_row = {'Sentences': title}
11
+ data = data.append(new_row, ignore_index=True)
12
  st.write(data)
13
 
14
  for line in data: