Text this: AI-Driven Dynamic Resource Allocation for Energy-Efficient Optical Fiber Communication Networks