Click4Ai

237.

Hard

Implement a function to generate text given a prompt. **Example:** Given the prompt 'Hello, my name is', the function should generate a sentence. **Constraints:** The function should use a pre-trained language model and the input prompt should be a string.

Test Cases

Test Case 1
Input: 'Hello, my name is'
Expected: John
Test Case 2
Input: 'I love to'
Expected: eat
+ 3 hidden test cases