SkimLit / RandomAbstract.py
Vrk's picture
Random generator
cecc69d
raw
history blame contribute delete
291 Bytes
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