jules / patch.py
GraziePrego's picture
Upload folder using huggingface_hub
34450be verified
raw
history blame contribute delete
658 Bytes
with open('components/SettingsModal.tsx', 'r') as f:
content = f.read()
content = content.replace('<span>Jules Key (Agent 4):</span>', '<span>AUXteam:</span>')
content = content.replace(
'<label className="block text-[10px] font-bold text-gray-500 uppercase">Jules API Key</label>',
'<label className="block text-[10px] font-bold text-gray-500 uppercase">{agent.id === \'jules-4\' ? \'AUXteam\' : \'Jules API Key\'}</label>'
)
content = content.replace(
'placeholder="Jules API Key"',
'placeholder={agent.id === \'jules-4\' ? \'AUXteam\' : \'Jules API Key\'}'
)
with open('components/SettingsModal.tsx', 'w') as f:
f.write(content)