Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,10 +66,9 @@ if topic is not None:
|
|
66 |
feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
67 |
|
68 |
# title = st.text_input('Movie title', 'Life of Brian')
|
69 |
-
|
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')
|
|
|
66 |
feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
67 |
|
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 |
with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|
73 |
json.dump(paraList,json_file, ensure_ascii = True)
|
74 |
repo.push_to_hub('added new annotation')
|