', unsafe_allow_html=True) # Zone d'upload en haut upload_container = st.container() with upload_container: uploaded_files = st.file_uploader("📁", type=["txt","mp4","mp3","pdf", "jpg", "jpeg", "png", "gif"], accept_multiple_files=True) # Afficher l'historique des messages for message in st.session_state.chat.history: with main_container.chat_message(role_to_streamlit(message.role)): st.markdown(message.parts[0].text) if len(message.parts) > 1: for part in message.parts[1:]: if hasattr(part, 'image'): st.image(part.image) # Fermer le div de marge main_container.markdown('