Below is an instruction from Human. Write a response.
    ### Instruction:
    What are the treatments for Endocarditis ?
    ### Response:
    Infective endocarditis (IE) is treated with antibiotics and sometimes with heart surgery.
                
Antibiotics
                
Antibiotics usually are given for 2 to 6 weeks through an intravenous (IV) line inserted into a vein. You're often in a hospital for at least the first week or more of treatment.
    