Spaces:
Sleeping
Sleeping
skanderovitch
commited on
Commit
•
ac1c090
1
Parent(s):
5c64186
Update app.py
Browse files
app.py
CHANGED
@@ -142,6 +142,12 @@ embeddings = pd.read_parquet('./embeddings.parquet')
|
|
142 |
st.title("Do you know your political parties?")
|
143 |
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
parties = st.multiselect(
|
146 |
"Which parties do you want to compare?",
|
147 |
list(data.columns),
|
@@ -203,10 +209,10 @@ fig.update_layout(legend=dict(
|
|
203 |
|
204 |
fig.update_xaxes(visible=False, showticklabels=False)
|
205 |
fig.update_yaxes(visible=False, showticklabels=False)
|
206 |
-
|
207 |
st.subheader('This is how similar the parties are, based on your interests')
|
208 |
st.plotly_chart(fig, config={'displayModeBar': False})
|
209 |
-
|
210 |
for t,ts in pss.items():
|
211 |
st.subheader(t)
|
212 |
for l in ts:
|
|
|
142 |
st.title("Do you know your political parties?")
|
143 |
|
144 |
|
145 |
+
st.write(' - We gathered the political parties manisfestos from ChatGPT')
|
146 |
+
st.write(' - Create an embedding of their pledge on different matters')
|
147 |
+
st.write(' - Visualise how different they truly are on a PCA projection')
|
148 |
+
st.write('Soon extended to US parties/candidates, to make it more general')
|
149 |
+
st.divider()
|
150 |
+
|
151 |
parties = st.multiselect(
|
152 |
"Which parties do you want to compare?",
|
153 |
list(data.columns),
|
|
|
209 |
|
210 |
fig.update_xaxes(visible=False, showticklabels=False)
|
211 |
fig.update_yaxes(visible=False, showticklabels=False)
|
212 |
+
st.divider()
|
213 |
st.subheader('This is how similar the parties are, based on your interests')
|
214 |
st.plotly_chart(fig, config={'displayModeBar': False})
|
215 |
+
st.divider()
|
216 |
for t,ts in pss.items():
|
217 |
st.subheader(t)
|
218 |
for l in ts:
|