Spaces:
Build error
Build error
pareil
Browse files- src/gradio/pages/ml_tab.py +20 -0
src/gradio/pages/ml_tab.py
CHANGED
|
@@ -254,6 +254,26 @@ def render_ml_tab(
|
|
| 254 |
|
| 255 |
btn.click(_fn, comps, [y_out, level_out, bmi_out, fat_out, meta_out])
|
| 256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
gr.Markdown("---")
|
| 258 |
|
| 259 |
# ====== Rapport modèle ======
|
|
|
|
| 254 |
|
| 255 |
btn.click(_fn, comps, [y_out, level_out, bmi_out, fat_out, meta_out])
|
| 256 |
|
| 257 |
+
# --- Bouton de debug pour Spaces ---
|
| 258 |
+
btn_debug = gr.Button("DEBUG: fill text")
|
| 259 |
+
|
| 260 |
+
def _debug_fill():
|
| 261 |
+
print("[DEBUG] test button clicked")
|
| 262 |
+
return "DEBUG VALUE FROM SPACE"
|
| 263 |
+
|
| 264 |
+
# --- Bouton de debug pour Spaces ---
|
| 265 |
+
btn_debug = gr.Button("DEBUG: fill text")
|
| 266 |
+
|
| 267 |
+
def _debug_fill():
|
| 268 |
+
print("[DEBUG] test button clicked")
|
| 269 |
+
return "DEBUG VALUE FROM SPACE"
|
| 270 |
+
|
| 271 |
+
btn_debug.click(
|
| 272 |
+
_debug_fill,
|
| 273 |
+
inputs=None,
|
| 274 |
+
outputs=level_out, # 👈 ICI : on pointe bien vers la textbox
|
| 275 |
+
)
|
| 276 |
+
|
| 277 |
gr.Markdown("---")
|
| 278 |
|
| 279 |
# ====== Rapport modèle ======
|