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
1 post - 1 participant