Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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][
|
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 |
-
|
|
|
64 |
|
65 |
-
title = st.text_input('Movie title', 'Life of Brian')
|
66 |
-
if st.button('Submit'):
|
67 |
-
|
|
|
|
|
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())
|