Spaces:
Sleeping
Sleeping
skanderovitch
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -174,14 +174,14 @@ ps = []
|
|
174 |
pss = dict()
|
175 |
for party,pledges in data.loc[themes,parties].items():
|
176 |
# st.subheader()
|
177 |
-
pss[
|
178 |
|
179 |
m = f'{party} pledges :'
|
180 |
for theme, t in pledges.items():
|
181 |
if not t.startswith('No specific'):
|
182 |
m += f'<br> - {theme}: {t}'
|
183 |
# st.write(f' - {theme}: {t}')
|
184 |
-
pss[
|
185 |
ps.append(m)
|
186 |
projection['manifesto'] = ps
|
187 |
|
|
|
174 |
pss = dict()
|
175 |
for party,pledges in data.loc[themes,parties].items():
|
176 |
# st.subheader()
|
177 |
+
pss[f'{party} pledges :'] = []
|
178 |
|
179 |
m = f'{party} pledges :'
|
180 |
for theme, t in pledges.items():
|
181 |
if not t.startswith('No specific'):
|
182 |
m += f'<br> - {theme}: {t}'
|
183 |
# st.write(f' - {theme}: {t}')
|
184 |
+
pss[f'{party} pledges :'].append(f' - {theme}: {t}')
|
185 |
ps.append(m)
|
186 |
projection['manifesto'] = ps
|
187 |
|