From 169b8aad84a196aae4503b7bcbaa1a38e9bfb566 Mon Sep 17 00:00:00 2001 From: Dennis Schiese Date: Thu, 29 Aug 2024 14:54:37 +0200 Subject: [PATCH] Bugfix init session state --- client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index 8060f91..85f4260 100644 --- a/client.py +++ b/client.py @@ -4,7 +4,7 @@ import pandas as pd from decouple import config -BACKEND_URL = config("BACKEND_URL") +BACKEND_URL = "http://localhost:4000"#config("BACKEND_URL") st.set_page_config(layout="wide") @@ -37,6 +37,8 @@ "best": None, "worst": None } +if "experiment_selection" not in st.session_state: + st.session_state.experiment_selection = 1.0; if "hash_explanation_dict" not in st.session_state: st.session_state.hash_explanation_dict = pd.read_csv("hash_explanation_dict.csv", index_col=0, header=None).to_dict(orient="index");