Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -141,25 +141,18 @@ def main():
|
|
141 |
|
142 |
|
143 |
col1, col2, col3, col4 = st.columns(4)
|
144 |
-
|
145 |
if col1.button("Die AfD Topic Analysis" ):
|
146 |
-
|
|
|
147 |
if col2.button("CDU/CSU Topic Analysis"):
|
148 |
-
|
|
|
149 |
if col3.button("Die Grünen Topic Analysis"):
|
150 |
-
|
|
|
151 |
if col4.button("Die Linke Topic Analysis"):
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
if st.session_state['show_afd']:
|
156 |
-
st.image(topic_analysis_screenshots['AfD'], caption='AfD Topic Analysis')
|
157 |
-
if st.session_state['show_cdu_csu']:
|
158 |
-
st.image(topic_analysis_screenshots['CDU/CSU'], caption='CDU/CSU Topic Analysis')
|
159 |
-
if st.session_state['show_gruene']:
|
160 |
-
st.image(topic_analysis_screenshots['Die Grünen'], caption='Die Grünen Topic Analysis')
|
161 |
-
if st.session_state['show_linke']:
|
162 |
-
st.image(topic_analysis_screenshots['die Linke'], caption='die Linke Topic Analysis')
|
163 |
|
164 |
|
165 |
if __name__ == "__main__":
|
|
|
141 |
|
142 |
|
143 |
col1, col2, col3, col4 = st.columns(4)
|
|
|
144 |
if col1.button("Die AfD Topic Analysis" ):
|
145 |
+
url = "./topic_analysis/afd_topics_trigram_bar_bert.html"
|
146 |
+
webbrowser.open_new_tab(url)
|
147 |
if col2.button("CDU/CSU Topic Analysis"):
|
148 |
+
url = "./topic_analysis/cdu_topics_trigram_bar_bert.html"
|
149 |
+
webbrowser.open_new_tab(url)
|
150 |
if col3.button("Die Grünen Topic Analysis"):
|
151 |
+
url = "./topic_analysis/gruene_topics_trigram_bar_bert.html"
|
152 |
+
webbrowser.open_new_tab(url)
|
153 |
if col4.button("Die Linke Topic Analysis"):
|
154 |
+
url = "./topic_analysis/linke_topics_trigram_bar_bert.html"
|
155 |
+
webbrowser.open_new_tab(url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
|
158 |
if __name__ == "__main__":
|