| import json | |
| import random | |
| import pandas as pd | |
| def Choose_Random_text(): | |
| with open("skimlit_example_abstracts.json", "r") as f: | |
| example_abstracts = json.load(f) | |
| abstracts = pd.DataFrame(example_abstracts) | |
| text = random.choice(abstracts.abstract) | |
| return text |