Spaces:
Paused
Paused
File size: 715 Bytes
34450be | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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)
|