London (CNN) -- WikiLeaks founder Julian Assange was granted bail Tuesday after a hearing at Westminster Magistrate's Court in London, but a lawyer representing Swedish prosecutors immediately filed an appeal.
That means Assange will remain in jail until the next hearing, which should be within 48 hours, lawyers said.
The 39-year-old Australian handed himself over to London police last week to answer a European arrest warrant over alleged sex crimes in Sweden.
Assange is facing accusations of rape, sexual molestation and illegal use of force in separate incidents in August in Stockholm. He could be sentenced to two years in prison if convicted. His lawyers deny the allegations and have vowed to fight any attempts at extradition.
The magistrate agreed to grant bail Tuesday after Vaughan Smith, a former British army officer who founded London's Frontline Club, testified that Assange could stay at his mansion in Suffolk.