()
| 38 | return text |
| 39 | |
| 40 | def main(): |
| 41 | # Specify values: |
| 42 | wiki_page = input("Enter the name of the wikipedia page: ") |
| 43 | |
| 44 | specify_num_of_sentences = input("Do you want to specify the number of sentences (default is 2)? (y/n): ") |
| 45 | |
| 46 | if specify_num_of_sentences == "y" or specify_num_of_sentences == "Y": |
| 47 | |
| 48 | num_of_sentences = input("Enter the number of sentences to include in the summary: ") |
| 49 | |
| 50 | print(voicing_text(page(wiki_page, num_of_sentences))) |
| 51 | else: |
| 52 | |
| 53 | print(voicing_text(page(wiki_page))) |
| 54 | |
| 55 | if __name__ == "__main__": |
| 56 | main() |
no test coverage detected