Just keep the part saying that it was written by ChatGPT, I think if the teacher is chill, you may get away with it. Maybe have a back up plan if just in case thougb