File size: 291 Bytes
cecc69d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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