aaron0eidt commited on
Commit
688668c
·
1 Parent(s): 2994d17

Force dark mode theme for app

Browse files
.streamlit/config.toml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [theme]
2
+ base = "dark"
3
+
4
+ [server]
5
+ # Prevent users from changing the theme
6
+ runOnSave = false
user_study/data/participant_counter.txt CHANGED
@@ -1 +1 @@
1
- 589
 
1
+ 638
utilities/utils.py CHANGED
@@ -14,7 +14,7 @@ def set_seed(seed_value=42):
14
  def init_qwen_api():
15
  # Set up the API configuration for Qwen.
16
  api_key = os.environ.get("QWEN_API_KEY")
17
-
18
  if not api_key:
19
  # Fallback for local testing if env var is missing
20
  api_key = "6e3def45d61b0b20547a1fcbab6464d8"
 
14
  def init_qwen_api():
15
  # Set up the API configuration for Qwen.
16
  api_key = os.environ.get("QWEN_API_KEY")
17
+
18
  if not api_key:
19
  # Fallback for local testing if env var is missing
20
  api_key = "6e3def45d61b0b20547a1fcbab6464d8"
web_app.py CHANGED
@@ -45,6 +45,11 @@ os.environ["OBJC_DISABLE_INITIALIZE_FORK_SAFETY"] = "YES"
45
  # Custom CSS for styling the app.
46
  st.markdown("""
47
  <style>
 
 
 
 
 
48
  .main-header {
49
  font-size: 3rem;
50
  color: #2f3f70;
 
45
  # Custom CSS for styling the app.
46
  st.markdown("""
47
  <style>
48
+ /* Hide the theme settings menu to enforce dark mode */
49
+ [data-testid="stToolbar"] {
50
+ visibility: hidden;
51
+ }
52
+
53
  .main-header {
54
  font-size: 3rem;
55
  color: #2f3f70;