Spaces:
Runtime error
Runtime error
Commit History
-
fix: remove root app.py — HF defaults to app.py over app_file setting
68ba0c4 -
fix: downgrade sdk_version 1.44.0→1.40.0 — HF health check compatibility
fc19138 -
diag: minimal 5-line app + disable usage stats — isolate Starting issue
066febe -
fix: cache_resource warm-up — spinner flushes before heavy imports block
f7e6177 -
diag: print checkpoints + visible loading banner; expose errors to stderr
1c14ec3 -
fix: call set_page_config before heavy imports; patch duplicate call
b5fdc1f -
fix: use exec() wrapper — eliminates double set_page_config crash
96cef35 -
fix: set_page_config before heavy import; cache_resource spinner; no-op patch
a824fc0 -
fix: importlib wrapper with correct __file__; remove garbage files
61e8a52 -
diag: wrap module-level imports to surface crash error
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>51db558 -
fix: move streamlit_app.py to root; fix sys.path for new location
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9dfb393 -
fix: use app.py as Streamlit entry point (HF default)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>37c9261 -
diag: minimal test to confirm Space runs our file
92182bf -
fix: add openenv back; catch BaseException to surface crash cause
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>72d70ca -
blog added
64a490d -
fix: use importlib to load demo app + streamlit config.toml
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e05a5b9 -
fix: catch startup errors and display them instead of crash-looping
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e247c59 -
fix: use exec() to run demo app with correct __file__ context
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b0a7802 -
fix: add root streamlit_app.py entry point; HF was running default demo
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>fba2beb -
feat: add Training Space link to Training tab; fix Space URL in app.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9988949 -
deploy: Streamlit Space setup + button-triggered training
- README.md: switch SDK to streamlit, app_file → demo/streamlit_app.py - requirements.txt: streamlit-compatible deps (drop CUDA index + gradio) - app.py: training no longer auto-starts on boot; judges must click '▶ Start Training' button; orange warning banner explains that starting a run will overwrite the current trained policy - data/.gitkeep: ensures data/ dir exists on Space filesystem - configs/training_config.yaml: spawn_threshold 0.40 (auto-spawn fix) - env/spindleflow_env.py: re-enable _maybe_spawn_specialist in reset() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7e20750 -
final commits
b6f7301 -
fix: quality demo
c699da7 -
trained evironment UI fixes
44f11d2 -
fix: install nvidia-cudnn-cu12 alongside CUDA torch (removes --no-deps)
0c3df82 -
fix: force-reinstall CUDA torch before gradio import; populate logs on page load
82cc86d -
fix: eliminate API leaks in training loop, set 30k steps for A100
a5c7dd0 -
Fix CPU training + 1902ms step speed bottleneck
e8360fd -
fix: push reward curve + logs every 10k steps, not just at training end
a798c01 -
perf: add encode+step benchmark to logs, validate CUDA speed
812dbcc -
perf: force ST to CUDA, disable LLM tasks, reduce to 100k steps
b71b25c -
feat: integrate trained RecurrentPPO policy into Streamlit demo UI
236d9fb -
fix: force-install CUDA torch in app.py before training starts
83cf44b -
fix: remove torch from requirements to preserve pre-installed CUDA torch
c977821 -
fix: install CUDA-enabled torch for GPU spaces
a39792d -
pre-deployment fixes for HF Spaces
aa154f2
-
Update Cell 1 & 2 with user-verified working versions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>175b600 -
Bulletproof Cell 1: check .git dir, rm partial clone, correct REPO path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3bce6e3 -
Fix REPO path: clone root is /content/kuchbhi not /content/kuchbhi/spindleflow-rl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>21923ce -
Rewrite train_colab.py: clean cells, fix audioop-lts, log file, reward curve
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>956acce -
Remove Colab notebook — using plain .py script instead
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c8407b4 -
Fix Cell 1: skip audioop-lts on Python < 3.13 (Colab uses 3.12)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c77f83c -
Add Colab notebook: 8 runnable cells, both secrets, log + curve
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>13dd91f -
Final Colab training script: log file, fixed reward curve, 100k steps
- Write all episode logs to /content/logs/training_log.txt (uploaded to HF) - Fix reward curve: scatter=blue, smoothed=orange, dark theme, 180 dpi - Add early baseline + final mean lines with annotated improvement - Cap at 100k timesteps (~20-25 min on T4, ~10k episodes) - Upload training_log.txt to HF Hub in Cell 8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c2b373f -
Add HF Hub push cell + fix pip deps in Colab training script
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8e0fa29 -
Remove gr.Timer: caused C-level crash with no Python output
gr.Timer in Gradio 5.50 segfaults on A100, producing zero container logs (not even the early print statements). Replace with every=10 on demo.load() which achieves the same auto-poll without native timer code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>278b691 -
Fix logs not showing: use file-based state instead of in-memory globals
Gradio 5 SSR mode runs event handlers in separate worker processes. Those workers have their own empty copies of _logs/_status and never see updates from the training thread in the main process. Fix: _log() already writes to a file. Now _write_status() persists phase/done/error to training_status.json. _get_state() reads both files so it works regardless of which process handles the request. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>52e0424 -
Add auto-refresh timer and dark theme CSS
- gr.Timer(10) polls training state every 10s automatically - Dark theme via CSS (no theme= param to avoid deprecation noise) - Monospace log box, styled status display Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0c2a6e7 -
Fix theme/css: keep in Blocks(), not launch()
Gradio 5.50 does not accept theme in launch(). The deprecation warnings are for Gradio 6.0 -- both params stay in Blocks() for now. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c0c63ff -
Improve Gradio UI: fix theme, add CSS, clean up layout
Move theme to launch() per Gradio 5 deprecation notice. Add monospace log box, bolder status display, hide footer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c0997b4