Applications of AI in Astronomy