multiapp import betterprompt prompt = "This is a sample prompt" perplexity = betterprompt.calculate_perplexity(prompt) print(perplexity) # Outputs the perplexity of the text