Spaces:
Sleeping
Sleeping
Demosthene-OR
commited on
Commit
•
fe8d156
1
Parent(s):
4ecdd27
....
Browse files- app.py +5 -4
- style.css +4 -9
- tabs/intro.py +0 -10
app.py
CHANGED
@@ -86,10 +86,11 @@ def run():
|
|
86 |
"assets/value_props_logo.png",
|
87 |
width=270,
|
88 |
)
|
89 |
-
with st.sidebar.expander(tr("Développez moi")):
|
|
|
90 |
st.markdown(tr("""
|
91 |
-
Cette application vous permet de tester les futures fonctionnalités de la plateforme Value Props, et plus particulièrement le «Sales Coaching».
|
92 |
-
Amusez vous bien !
|
93 |
"""))
|
94 |
with st.sidebar:
|
95 |
|
@@ -119,7 +120,7 @@ def run():
|
|
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")
|
122 |
-
openai_api_key = st.sidebar.text_input("
|
123 |
if openai_api_key:
|
124 |
os.environ['OPENAI_API_KEY'] = openai_api_key
|
125 |
st.session_state['OPENAI_API_KEY'] = openai_api_key
|
|
|
86 |
"assets/value_props_logo.png",
|
87 |
width=270,
|
88 |
)
|
89 |
+
with st.sidebar.expander(":red[**"+tr("Développez moi")+"**]"):
|
90 |
+
# st.markdown(f"<style>{style}</style>", unsafe_allow_html=True)
|
91 |
st.markdown(tr("""
|
92 |
+
:red[Cette application vous permet de tester les futures fonctionnalités de la plateforme Value Props, et plus particulièrement le «Sales Coaching».
|
93 |
+
Amusez vous bien !]
|
94 |
"""))
|
95 |
with st.sidebar:
|
96 |
|
|
|
120 |
if (llm_choice in ["OpenAI 3.5","OpenAI 4o"]) and ('OPENAI_API_KEY' not in st.session_state):
|
121 |
# Set OpenAI API key
|
122 |
st.sidebar.subheader("OpenAI API Key")
|
123 |
+
openai_api_key = st.sidebar.text_input(tr("Saisissez votre Clé API OpenAI:"), type='password')
|
124 |
if openai_api_key:
|
125 |
os.environ['OPENAI_API_KEY'] = openai_api_key
|
126 |
st.session_state['OPENAI_API_KEY'] = openai_api_key
|
style.css
CHANGED
@@ -25,6 +25,9 @@ h3 {
|
|
25 |
color: rgb(255, 75, 75)!important;
|
26 |
font-weight: bold;
|
27 |
}
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
p {
|
@@ -82,10 +85,6 @@ section[data-testid="stSidebar"] button[kind="icon"] {
|
|
82 |
display: none;
|
83 |
}
|
84 |
|
85 |
-
section[data-testid="stSidebar"] .st-ax {
|
86 |
-
background-color: #dd107d/*#10b8dd;*/
|
87 |
-
}
|
88 |
-
|
89 |
section[data-testid="stSidebar"] .st-c0 {
|
90 |
/* background-color: #10b8dd; */
|
91 |
}
|
@@ -109,11 +108,7 @@ section[data-testid="stSidebar"] .stSelectbox .st-bm {
|
|
109 |
font-weight: bold;
|
110 |
}
|
111 |
|
112 |
-
.st-emotion-cache-
|
113 |
-
background-color: #a0d3de;
|
114 |
-
}
|
115 |
-
|
116 |
-
section[data-testid="stSidebar"] .st-emotion-cache-1clstc5 {
|
117 |
background-color: #a0d3de;
|
118 |
}
|
119 |
|
|
|
25 |
color: rgb(255, 75, 75)!important;
|
26 |
font-weight: bold;
|
27 |
}
|
28 |
+
.st-emotion-cache-13na8ym {
|
29 |
+
background-color: #a0d3de;
|
30 |
+
}
|
31 |
}
|
32 |
|
33 |
p {
|
|
|
85 |
display: none;
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
88 |
section[data-testid="stSidebar"] .st-c0 {
|
89 |
/* background-color: #10b8dd; */
|
90 |
}
|
|
|
108 |
font-weight: bold;
|
109 |
}
|
110 |
|
111 |
+
.st-emotion-cache-1h9usn1 {
|
|
|
|
|
|
|
|
|
112 |
background-color: #a0d3de;
|
113 |
}
|
114 |
|
tabs/intro.py
CHANGED
@@ -36,13 +36,3 @@ def run():
|
|
36 |
""")
|
37 |
, unsafe_allow_html=True)
|
38 |
|
39 |
-
|
40 |
-
'''
|
41 |
-
sent = \
|
42 |
-
"""
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
"""
|
47 |
-
st.markdown(tr(sent), unsafe_allow_html=True)
|
48 |
-
'''
|
|
|
36 |
""")
|
37 |
, unsafe_allow_html=True)
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|