Spaces:
Paused
Paused
Download patch_app_timer_3.py from GraziePrego/jules: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/spaces/GraziePrego/jules/resolve/main/patch_app_timer_3.py
- Command line
-
hf download hf://spaces/GraziePrego/jules/patch_app_timer_3.py
-
curl -L -o patch_app_timer_3.py https://huggingface.co/spaces/GraziePrego/jules/resolve/main/patch_app_timer_3.py
715 Bytes
| with open("App.tsx", "r") as f: | |
| content = f.read() | |
| # Add the HFCueWizardModal to the bottom of the component | |
| modal_search = """ <NewSessionModal """ | |
| modal_replace = """ <HFCueWizardModal | |
| isOpen={hfWizardOpen} | |
| onClose={() => setHfWizardOpen(false)} | |
| onStartTimer={handleStartHfTimer} | |
| sources={sources} | |
| currentSessionId={currentSessionId} | |
| githubToken={settings.githubTokens[currentAgent.id]} | |
| githubProfile={settings.githubProfiles[currentAgent.id]} | |
| hfProfileData={hfProfiles[currentAgent.id]} | |
| /> | |
| <NewSessionModal """ | |
| content = content.replace(modal_search, modal_replace) | |
| with open("App.tsx", "w") as f: | |
| f.write(content) | |