✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

The Print function does not work when using dcc.Loading

i am using DCC.Loading to Print a separte Sentences in a text file in separate lines , my code as below:

body = [
dcc.Upload(
id=‘upload-data’,
children=html.Div([
'Drag and Drop or ',
html.A(‘Select Files for summarized Text22’)
]),
style={
‘width’: ‘100%’,
‘height’: ‘60px’,
‘lineHeight’: ‘60px’,
‘borderWidth’: ‘1px’,
‘borderStyle’: ‘dashed’,
‘borderRadius’: ‘5px’,
‘textAlign’: ‘center’,
‘margin’: ‘10px’
}),
dbc.Row([

    dbc.Col(dcc.Loading(html.Div(html.Div(id="summary"), style={"white-space": "pre"})), width={'size':6, 'offset':3})

])

]

Setting layout for the application

app.layout = html.Div(body)

def process_content(contents):
tests=[‘Ahmed’,‘safewat’,‘fdfdf’]

print (*tests,sep="\n")

I got blank