RISE / README.txt
bChaukar's picture
Upload 3 files
ced7046 verified
Raw History Blame Contribute Delete
1.19 kB
RISE UI update
1. Replace the existing dashboard.html in the Hugging Face Space with this dashboard.html.
2. Upload practice.html to the repository root (next to index.html and style.css).
3. Open the existing rise-frontend.js and find the session-start request body, currently:
body:JSON.stringify({level:"beginner",part:"sentence"})
Replace it with:
body:JSON.stringify({level:window.RISE_SELECTED_LEVEL || "beginner",part:"sentence"})
4. In practice.html, replace:
https://REPLACE-WITH-CURRENT-CLOUDFLARE-URL.trycloudflare.com
with the current normal Cloudflare URL from Colab. Do not add /api/health.
5. Commit all changes, wait for the Space to update, then open the dashboard and click Start Practice.
Expected behavior: one practice card -> five levels -> selected level starts at Sentence. The existing API advances to Paragraph and Story only after score >= 80%, then proceeds to the next level after Story passes. A failed score keeps the same passage for retry.
Note: Existing rise-frontend.js is loaded only after choosing a level on practice.html. Do not also add its script tag to practice.html's head or bottom, or it will render before the level is selected.