Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.title("Mariam Anglais")
|
4 |
+
|
5 |
+
uploaded_files = st.file_uploader("Choisissez des images", type=["jpg", "jpeg", "png"], accept_multiple_files=True)
|
6 |
+
|
7 |
+
analysis_type = st.radio("Choisissez le type d'analyse :",
|
8 |
+
("Type 1", "Type 2"))
|
9 |
+
|
10 |
+
if st.button("Soumettre"):
|
11 |
+
if uploaded_files is not None and len(uploaded_files) > 0:
|
12 |
+
st.write("Images téléchargées :")
|
13 |
+
for uploaded_file in uploaded_files:
|
14 |
+
st.image(uploaded_file)
|
15 |
+
st.write("Type d'analyse sélectionné :", analysis_type)
|
16 |
+
st.write("Traitement en cours...")
|
17 |
+
# Insérez ici le code pour effectuer l'analyse d'image
|
18 |
+
# en fonction du type d'analyse choisi.
|
19 |
+
st.write("Analyse terminée !")
|
20 |
+
else:
|
21 |
+
st.write("Veuillez télécharger au moins une image.")
|