DavidNgoue commited on
Commit
2a2df0c
·
verified ·
1 Parent(s): 1f58921

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -33
app.py CHANGED
@@ -135,42 +135,13 @@ def main():
135
  add_custom_css()
136
  add_custom_js()
137
 
 
138
  logo_path = "logo.jpg"
139
  logo = Image.open(logo_path)
140
  st.image(logo, width=150, caption="ADS VISOR")
141
 
142
  st.title("ADS VISOR - Un autre regard")
143
 
144
- # Affichage du descriptif de l'application avant l'upload
145
- st.header("Bienvenue sur ADS VISOR")
146
- st.markdown(
147
- """
148
- <div class="stMarkdown">
149
- <h2>ADS VISOR est une application innovante pour analyser, transformer et explorer vos images. 🖼️✨</h2>
150
- <p>Que vous soyez un professionnel ou un passionné, découvrez un large éventail de fonctionnalités interactives !</p>
151
- <ul>
152
- <li><b>Transformations d'image :</b> Couleurs, niveaux de gris, etc.</li>
153
- <li><b>Découpage & Rotation :</b> Ajustez vos images à la perfection.</li>
154
- <li><b>Détection Faciale :</b> Identifiez les visages automatiquement.</li>
155
- <li><b>Codes-barres & QR Codes :</b> Génération rapide pour vos projets.</li>
156
- </ul>
157
- </div>
158
- """,
159
- unsafe_allow_html=True
160
- )
161
-
162
- st.write("### Équipe :")
163
- st.markdown(
164
- """
165
- | **Nom** | **Niveau** |
166
- |------------------------|---------------------------|
167
- | **Ngoue David** | Master 2 Intelligence Artificielle et Big Data |
168
- | **Bidzanga Armel** | Master 2 Intelligence Artificielle et Big Data |
169
- | **Nziou Serena** | Master 2 Administration de Systèmes d'Information |
170
- """,
171
- unsafe_allow_html=True
172
- )
173
-
174
  st.sidebar.header("Chargement de l'image")
175
  if "default_image" not in st.session_state:
176
  st.session_state["default_image"] = None
@@ -185,7 +156,6 @@ def main():
185
  st.sidebar.warning("Veuillez charger une image pour commencer.")
186
  return
187
 
188
- # La section des fonctionnalités est affichée uniquement après l'upload
189
  st.sidebar.header("Fonctionnalités")
190
  menu_option = st.sidebar.selectbox(
191
  "Choisissez une fonctionnalité",
@@ -205,8 +175,35 @@ def main():
205
  image_np = st.session_state["default_image"]
206
 
207
  if menu_option == "Accueil":
208
- pass
209
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  elif menu_option == "Transformations d'image":
211
  st.subheader("Transformations d'image")
212
 
 
135
  add_custom_css()
136
  add_custom_js()
137
 
138
+
139
  logo_path = "logo.jpg"
140
  logo = Image.open(logo_path)
141
  st.image(logo, width=150, caption="ADS VISOR")
142
 
143
  st.title("ADS VISOR - Un autre regard")
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  st.sidebar.header("Chargement de l'image")
146
  if "default_image" not in st.session_state:
147
  st.session_state["default_image"] = None
 
156
  st.sidebar.warning("Veuillez charger une image pour commencer.")
157
  return
158
 
 
159
  st.sidebar.header("Fonctionnalités")
160
  menu_option = st.sidebar.selectbox(
161
  "Choisissez une fonctionnalité",
 
175
  image_np = st.session_state["default_image"]
176
 
177
  if menu_option == "Accueil":
178
+ st.header("Bienvenue sur ADS VISOR")
179
+ st.markdown(
180
+ """
181
+ <div class="stMarkdown">
182
+ <h2>ADS VISOR est une application innovante pour analyser, transformer et explorer vos images. 🖼️✨</h2>
183
+ <p>Que vous soyez un professionnel ou un passionné, découvrez un large éventail de fonctionnalités interactives !</p>
184
+ <ul>
185
+ <li><b>Transformations d'image :</b> Couleurs, niveaux de gris, etc.</li>
186
+ <li><b>Découpage & Rotation :</b> Ajustez vos images à la perfection.</li>
187
+ <li><b>Détection Faciale :</b> Identifiez les visages automatiquement.</li>
188
+ <li><b>Codes-barres & QR Codes :</b> Génération rapide pour vos projets.</li>
189
+ </ul>
190
+ </div>
191
+ """,
192
+ unsafe_allow_html=True
193
+ )
194
+
195
+ st.write("### Équipe :")
196
+ st.markdown(
197
+ """
198
+ | **Nom** | **Niveau** |
199
+ |------------------------|---------------------------|
200
+ | **Ngoue David** | Master 2 Intelligence Artificielle et Big Data |
201
+ | **Bidzanga Armel** | Master 2 Intelligence Artificielle et Big Data |
202
+ | **Nziou Serena** | Master 2 Administration de Systèmes d'Information |
203
+ """,
204
+ unsafe_allow_html=True
205
+ )
206
+
207
  elif menu_option == "Transformations d'image":
208
  st.subheader("Transformations d'image")
209