Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,20 +57,22 @@ with st.container():
|
|
| 57 |
|
| 58 |
idx = np.random.randint(0,3)
|
| 59 |
st.write(idx)
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
| 74 |
# if st.button('Submit'):
|
| 75 |
# paraList[topic][choice][idx]['annotation'].append(feedback)
|
| 76 |
# with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|
|
|
|
| 57 |
|
| 58 |
idx = np.random.randint(0,3)
|
| 59 |
st.write(idx)
|
| 60 |
+
|
| 61 |
+
c1, c2, c3 = st.columns([3, 1, 1])
|
| 62 |
+
with c1:
|
| 63 |
+
st.header('Text')
|
| 64 |
+
st.write(paraList[topic][tag][idx]['textsegment'])
|
| 65 |
|
| 66 |
+
with c2:
|
| 67 |
+
st.header('Tag')
|
| 68 |
+
st.text(choice)
|
| 69 |
|
| 70 |
+
with c3:
|
| 71 |
+
st.header('Feedback')
|
| 72 |
+
feedback = None
|
| 73 |
+
feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
|
| 74 |
+
if feedback:
|
| 75 |
+
st.write(feedback)
|
| 76 |
# if st.button('Submit'):
|
| 77 |
# paraList[topic][choice][idx]['annotation'].append(feedback)
|
| 78 |
# with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|