Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|