Spaces:
Running
Running
Upload app.py
Browse filesCorrection du app.py
app.py
CHANGED
|
@@ -114,7 +114,7 @@ with st.sidebar:
|
|
| 114 |
opt_unsafe = st.checkbox("Activer les corrections forcées (modernisation)", value=True)
|
| 115 |
|
| 116 |
#st.divider()
|
| 117 |
-
btn_analyze = st.button("🚀 Analyser & Corriger",
|
| 118 |
|
| 119 |
# --- ZONE CENTRALE ---
|
| 120 |
st.title("🐍 Coach Code Python")
|
|
@@ -215,6 +215,4 @@ if btn_analyze and uploaded_files:
|
|
| 215 |
st.error(f"Erreur : {e}")
|
| 216 |
|
| 217 |
if Path(".ruff_cache").exists():
|
| 218 |
-
shutil.rmtree(".ruff_cache")
|
| 219 |
-
else:
|
| 220 |
-
st.info("👈 Veuillez sélectionner un ou plusieurs fichiers Python dans la barre latérale pour commencer l'analyse.")
|
|
|
|
| 114 |
opt_unsafe = st.checkbox("Activer les corrections forcées (modernisation)", value=True)
|
| 115 |
|
| 116 |
#st.divider()
|
| 117 |
+
btn_analyze = st.button("🚀 Analyser & Corriger", width='stretch')
|
| 118 |
|
| 119 |
# --- ZONE CENTRALE ---
|
| 120 |
st.title("🐍 Coach Code Python")
|
|
|
|
| 215 |
st.error(f"Erreur : {e}")
|
| 216 |
|
| 217 |
if Path(".ruff_cache").exists():
|
| 218 |
+
shutil.rmtree(".ruff_cache")
|
|
|
|
|
|