Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
| 50 |
-
# repo, paraList = read_dataset()
|
| 51 |
-
|
| 52 |
-
#
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
#if topic is not None:
|
| 58 |
-
# subtopics = list(paraList[topic].keys())
|
| 59 |
#st.write(subtopics)
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
#if np.random.randint(0,1) == 0:
|
| 64 |
-
# choice = "Gender"
|
| 65 |
-
#else:
|
| 66 |
-
# choice = "Women Empowernment"
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 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')
|