ppsingh commited on
Commit
536d96b
1 Parent(s): 231a0b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -45,10 +45,15 @@ if keys is not None:
45
 
46
  if topic is not None:
47
  c1, c2, c3 = st.columns([3, 1, 1])
48
- if np.random.randint(0,1) == 0:
49
- choice = 'Gender'
50
- else:
51
- choice = 'Women Empowernment'
 
 
 
 
 
52
 
53
  idx = np.random.randint(0,3)
54
 
 
45
 
46
  if topic is not None:
47
  c1, c2, c3 = st.columns([3, 1, 1])
48
+ subtopics = paraList[topic].keys()
49
+ st.write(subtopics)
50
+ val = np.random.randint(0,len(subtopics)
51
+ choice = subtopics[val]
52
+ st.write(choice)
53
+ #if np.random.randint(0,1) == 0:
54
+ # choice = "Gender"
55
+ #else:
56
+ # choice = "Women Empowernment"
57
 
58
  idx = np.random.randint(0,3)
59