ppsingh commited on
Commit
49b7338
1 Parent(s): 74bf666

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -57,20 +57,22 @@ with st.container():
57
 
58
  idx = np.random.randint(0,3)
59
  st.write(idx)
60
- #c1, c2, c3 = st.columns([3, 1, 1])
61
- #with c1:
62
- # st.header('Text')
63
- #st.write(paraList[topic][choice][idx]['textsegment'])
 
64
 
65
- #with c2:
66
- # st.header('Tag')
67
- #st.text(choice)
68
 
69
- # with c3:
70
- #st.header('Feedback')
71
- #feedback = None
72
- # feedback = st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
73
- # if feedback:
 
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: