Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add toast
Browse files
src/application/views/inc_page.py
CHANGED
@@ -267,6 +267,10 @@ def init_inc_page():
|
|
267 |
trigger_ask_inc = st.session_state.setdefault("trigger_inc", False)
|
268 |
|
269 |
if st.button("Ask", icon=":material/send:", type="primary"):
|
|
|
|
|
|
|
|
|
270 |
if prompt_inc == "":
|
271 |
st.error(
|
272 |
"Please enter a question. Reloading the app in few seconds"
|
@@ -334,6 +338,10 @@ def init_inc_page():
|
|
334 |
unsafe_allow_html=True,
|
335 |
)
|
336 |
if st.button("Filter", icon=":material/filter_alt:", type="primary"):
|
|
|
|
|
|
|
|
|
337 |
if (
|
338 |
not selected_authors_inc
|
339 |
and not selected_draft_cats_inc
|
|
|
267 |
trigger_ask_inc = st.session_state.setdefault("trigger_inc", False)
|
268 |
|
269 |
if st.button("Ask", icon=":material/send:", type="primary"):
|
270 |
+
st.toast(
|
271 |
+
"Negotiations for the UN Plastics Treaty Round 5 are ongoing. Latest documents may not yet be in our database. We are continuously reviewing and updating the data.",
|
272 |
+
icon=":material/info:",
|
273 |
+
)
|
274 |
if prompt_inc == "":
|
275 |
st.error(
|
276 |
"Please enter a question. Reloading the app in few seconds"
|
|
|
338 |
unsafe_allow_html=True,
|
339 |
)
|
340 |
if st.button("Filter", icon=":material/filter_alt:", type="primary"):
|
341 |
+
st.toast(
|
342 |
+
"Negotiations for the UN Plastics Treaty Round 5 are ongoing. Latest documents may not yet be in our database. We are continuously reviewing and updating the data.",
|
343 |
+
icon=":material/info:",
|
344 |
+
)
|
345 |
if (
|
346 |
not selected_authors_inc
|
347 |
and not selected_draft_cats_inc
|