ppsingh commited on
Commit
043fe71
1 Parent(s): f6898c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -50,9 +50,11 @@ if topic is not None:
50
  else:
51
  choice = 'Women Empowernment'
52
 
 
 
53
  with c1:
54
  st.header('Text')
55
- st.write(paraList[topic][choice][0]['textsegment'])
56
 
57
  with c2:
58
  st.header('Tag')
@@ -60,11 +62,14 @@ if topic is not None:
60
 
61
  with c3:
62
  st.header('Feedback')
63
- st.selectbox('0 If Tag is not a good keyword for text, 5 for prefect match',(0,1,2,3,4,5))
 
64
 
65
- title = st.text_input('Movie title', 'Life of Brian')
66
- if st.button('Submit'):
67
- new_row = title
 
 
68
  # data = data.append(new_row, ignore_index=True)
69
  # st.write(data)
70
  # st.write(os.getcwd())
 
50
  else:
51
  choice = 'Women Empowernment'
52
 
53
+ idx = np.random.randint(0,3)
54
+
55
  with c1:
56
  st.header('Text')
57
+ st.write(paraList[topic][choice][idx]['textsegment'])
58
 
59
  with c2:
60
  st.header('Tag')
 
62
 
63
  with c3:
64
  st.header('Feedback')
65
+ feedback = 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
+ if st.button('Submit'):
70
+ if feedback is not None:
71
+ pass
72
+ #new_row = title
73
  # data = data.append(new_row, ignore_index=True)
74
  # st.write(data)
75
  # st.write(os.getcwd())