Demosthene-OR commited on
Commit
22c709a
·
1 Parent(s): 1784b24
Files changed (2) hide show
  1. app.py +2 -2
  2. style.css +16 -0
app.py CHANGED
@@ -115,7 +115,7 @@ def run():
115
  if (llm_choice == "OpenAI 3.5") : st.session_state.model = "gpt-3.5-turbo"
116
  elif (llm_choice == "OpenAI 4o") : st.session_state.model = "gpt-4o"
117
  else: st.session_state.model = "mistral-large-latest"
118
-
119
  if (llm_choice in ["OpenAI 3.5","OpenAI 4o"]) and ('OPENAI_API_KEY' not in st.session_state):
120
  # Set OpenAI API key
121
  st.sidebar.subheader("OpenAI API Key")
@@ -124,7 +124,7 @@ def run():
124
  os.environ['OPENAI_API_KEY'] = openai_api_key
125
  st.session_state['OPENAI_API_KEY'] = openai_api_key
126
  st.sidebar.success("OpenAI API Key set successfully.")
127
-
128
  with st.sidebar:
129
  l = st.selectbox("langue:",lang_tgt, format_func = find_lang_label, key="Language", label_visibility="hidden")
130
  st.session_state.language_label = find_lang_label_en(l)
 
115
  if (llm_choice == "OpenAI 3.5") : st.session_state.model = "gpt-3.5-turbo"
116
  elif (llm_choice == "OpenAI 4o") : st.session_state.model = "gpt-4o"
117
  else: st.session_state.model = "mistral-large-latest"
118
+ '''
119
  if (llm_choice in ["OpenAI 3.5","OpenAI 4o"]) and ('OPENAI_API_KEY' not in st.session_state):
120
  # Set OpenAI API key
121
  st.sidebar.subheader("OpenAI API Key")
 
124
  os.environ['OPENAI_API_KEY'] = openai_api_key
125
  st.session_state['OPENAI_API_KEY'] = openai_api_key
126
  st.sidebar.success("OpenAI API Key set successfully.")
127
+ '''
128
  with st.sidebar:
129
  l = st.selectbox("langue:",lang_tgt, format_func = find_lang_label, key="Language", label_visibility="hidden")
130
  st.session_state.language_label = find_lang_label_en(l)
style.css CHANGED
@@ -8,6 +8,11 @@ h2 {
8
  padding-bottom: 0.5rem;
9
  }
10
 
 
 
 
 
 
11
  /* La ligne suivante est nécessaire à cause du module streamlit_option_menu qui "casse" les CSS suivants */
12
  @media (prefers-color-scheme: dark) {
13
  .st-cc {
@@ -99,6 +104,13 @@ section[data-testid="stSidebar"] .stSelectbox .st-bk {
99
  background-color: #a0d3de;
100
  }
101
 
 
 
 
 
 
 
 
102
  section[data-testid="stSidebar"] .stSelectbox .st-cc {
103
  color: rgb(255, 75, 75);
104
  font-weight: bold;
@@ -127,3 +139,7 @@ section[tabindex="0"] .block-container {
127
  padding-top: 0px;
128
  padding-bottom: 0px;
129
  }
 
 
 
 
 
8
  padding-bottom: 0.5rem;
9
  }
10
 
11
+ h3 {
12
+ padding-bottom: 0.0rem;
13
+ }
14
+
15
+
16
  /* La ligne suivante est nécessaire à cause du module streamlit_option_menu qui "casse" les CSS suivants */
17
  @media (prefers-color-scheme: dark) {
18
  .st-cc {
 
104
  background-color: #a0d3de;
105
  }
106
 
107
+ .st-emotion-cache-1h9usn1{
108
+ font-weight: bold!important;
109
+ background-color: #a0d3de;
110
+ }
111
+
112
+
113
+
114
  section[data-testid="stSidebar"] .stSelectbox .st-cc {
115
  color: rgb(255, 75, 75);
116
  font-weight: bold;
 
139
  padding-top: 0px;
140
  padding-bottom: 0px;
141
  }
142
+
143
+ .st-emotion-cache-12fmjuu {
144
+ height: 0rem;
145
+ }