Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +11,6 @@ import numpy as np
|
|
| 11 |
import tempfile
|
| 12 |
from io import BytesIO
|
| 13 |
|
| 14 |
-
print("=== APP STARTING ===") # Ça apparaîtra dans les logs
|
| 15 |
-
st.write("Hello, world!") # Un truc simple pour tester
|
| 16 |
-
|
| 17 |
-
|
| 18 |
# Configuration de la page Streamlit
|
| 19 |
st.set_page_config(
|
| 20 |
page_title="Comparaison de vitesse de chargement des données",
|
|
@@ -109,6 +105,20 @@ st.markdown("Téléchargez un fichier **CSV, Excel ou Parquet** pour comparer **
|
|
| 109 |
# --- SIDEBAR ---
|
| 110 |
st.sidebar.header("⚙️ Paramètres du fichier")
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
# Boutons de démo
|
| 113 |
st.sidebar.subheader("🧪 Fichiers de test (30Mo)")
|
| 114 |
c1, c2 = st.sidebar.columns(2)
|
|
@@ -205,7 +215,7 @@ if st.session_state.target_file is not None:
|
|
| 205 |
f'{bar.get_width():.4f}s', va='center', fontsize=10, fontweight='bold')
|
| 206 |
|
| 207 |
ax.set_xlabel('Temps (secondes)')
|
| 208 |
-
ax.set_title('Comparaison de
|
| 209 |
st.pyplot(fig)
|
| 210 |
plt.close(fig)
|
| 211 |
|
|
|
|
| 11 |
import tempfile
|
| 12 |
from io import BytesIO
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Configuration de la page Streamlit
|
| 15 |
st.set_page_config(
|
| 16 |
page_title="Comparaison de vitesse de chargement des données",
|
|
|
|
| 105 |
# --- SIDEBAR ---
|
| 106 |
st.sidebar.header("⚙️ Paramètres du fichier")
|
| 107 |
|
| 108 |
+
# CSS global pour les boutons
|
| 109 |
+
st.markdown(
|
| 110 |
+
"""
|
| 111 |
+
<style>
|
| 112 |
+
.stButton > button {
|
| 113 |
+
height: 80px !important;
|
| 114 |
+
}
|
| 115 |
+
</style>
|
| 116 |
+
""",
|
| 117 |
+
unsafe_allow_html=True
|
| 118 |
+
)
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
|
| 122 |
# Boutons de démo
|
| 123 |
st.sidebar.subheader("🧪 Fichiers de test (30Mo)")
|
| 124 |
c1, c2 = st.sidebar.columns(2)
|
|
|
|
| 215 |
f'{bar.get_width():.4f}s', va='center', fontsize=10, fontweight='bold')
|
| 216 |
|
| 217 |
ax.set_xlabel('Temps (secondes)')
|
| 218 |
+
ax.set_title('Comparaison des vitesses de lecture')
|
| 219 |
st.pyplot(fig)
|
| 220 |
plt.close(fig)
|
| 221 |
|