Spaces:
Paused
Paused
Download patch_app_ui.py from GraziePrego/jules: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/GraziePrego/jules/resolve/main/patch_app_ui.py
- Command line
-
hf download hf://spaces/GraziePrego/jules/patch_app_ui.py
-
curl -L -o patch_app_ui.py https://huggingface.co/spaces/GraziePrego/jules/resolve/main/patch_app_ui.py
650 Bytes
| with open("App.tsx", "r") as f: | |
| content = f.read() | |
| # Pass hfTimerQueue properly | |
| app_notes_old = """ queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []} | |
| onHuggingFaceCue={handleHuggingFaceCue}""" | |
| app_notes_new = """ queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []} | |
| hfTimerQueue={currentSessionId ? hfTimerQueue[currentSessionId] : undefined} | |
| onHuggingFaceCue={handleHuggingFaceCue}""" | |
| content = content.replace(app_notes_old, app_notes_new) | |
| with open("App.tsx", "w") as f: | |
| f.write(content) | |