ppsingh commited on
Commit
7bb6ae5
1 Parent(s): 043fe71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -68,7 +68,13 @@ if topic is not None:
68
  # title = st.text_input('Movie title', 'Life of Brian')
69
  if st.button('Submit'):
70
  if feedback is not None:
71
- pass
 
 
 
 
 
 
72
  #new_row = title
73
  # data = data.append(new_row, ignore_index=True)
74
  # st.write(data)
 
68
  # title = st.text_input('Movie title', 'Life of Brian')
69
  if st.button('Submit'):
70
  if feedback is not None:
71
+ paraList[topic][choice][idx]['annotation'].append(feedback)
72
+
73
+ with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
74
+ json.dump(paraList,json_file, ensure_ascii = True)
75
+ repo.push_to_hub('added new annotation')
76
+
77
+
78
  #new_row = title
79
  # data = data.append(new_row, ignore_index=True)
80
  # st.write(data)