jules / patch_app_timer_3.py
GraziePrego's picture
Upload folder using huggingface_hub
34450be verified
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)