Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ if topic is not None:
|
|
| 71 |
feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
| 72 |
if feedback:
|
| 73 |
if st.button('Submit'):
|
| 74 |
-
|
| 75 |
# with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|
| 76 |
# json.dump(paraList,json_file, ensure_ascii = True)
|
| 77 |
# repo.push_to_hub('added new annotation')
|
|
|
|
| 71 |
feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
| 72 |
if feedback:
|
| 73 |
if st.button('Submit'):
|
| 74 |
+
paraList[topic][choice][idx]['annotation'].append(feedback)
|
| 75 |
# with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|
| 76 |
# json.dump(paraList,json_file, ensure_ascii = True)
|
| 77 |
# repo.push_to_hub('added new annotation')
|