ppsingh commited on
Commit
74bf666
1 Parent(s): 26fc0ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -18
app.py CHANGED
@@ -46,27 +46,17 @@ if keys is not None:
46
  topic = st.sidebar.selectbox(label="Choose dataset topic to load", options=keys )
47
 
48
 
49
- #with st.container():
50
- # repo, paraList = read_dataset()
51
-
52
- #
53
-
54
 
55
- # st.write(line)
56
- #st.write(paraList)
57
- #if topic is not None:
58
- # subtopics = list(paraList[topic].keys())
59
  #st.write(subtopics)
60
- # val = np.random.randint(0,len(subtopics)-1)
61
- # choice = subtopics[val]
62
- # st.write(choice)
63
- #if np.random.randint(0,1) == 0:
64
- # choice = "Gender"
65
- #else:
66
- # choice = "Women Empowernment"
67
 
68
- # idx = np.random.randint(0,3)
69
- # st.write(idx)
70
  #c1, c2, c3 = st.columns([3, 1, 1])
71
  #with c1:
72
  # st.header('Text')
 
46
  topic = st.sidebar.selectbox(label="Choose dataset topic to load", options=keys )
47
 
48
 
49
+ with st.container():
 
 
 
 
50
 
51
+ if topic is not None:
52
+ subtopics = list(paraList[topic].keys())
 
 
53
  #st.write(subtopics)
54
+ val = np.random.randint(0,len(subtopics)-1)
55
+ tag = subtopics[val]
56
+ st.write(tag)
 
 
 
 
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')