datacipen commited on
Commit
a1cde50
·
verified ·
1 Parent(s): f90d597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -527,7 +527,7 @@ def textbox(text, box="AI", name="Philippe"):
527
  style["margin-right"] = 0
528
 
529
  #return dbc.Card(text, style=style, body=True, color="primary", inverse=True)
530
- return html.Div(dmc.Button(text, variant="gradient", gradient={"from": "grape", "to": "pink", "deg": 35}), style=styleUSERIA)
531
 
532
  elif box == "AI":
533
  style["margin-left"] = 0
@@ -542,9 +542,9 @@ def textbox(text, box="AI", name="Philippe"):
542
  "float": "left",
543
  },
544
  )
545
- #textbox = dbc.Card(text, style=style, body=True, color="light", inverse=False)
546
- #textbox = dmc.Blockquote(text, style=styleSYSIA)
547
- textbox = dmc.Card(children=[dmc.Text(text,size="sm",c="dimmed")],withBorder=False,w="100%", style=styleSYSIA)
548
  return html.Div([thumbnail, textbox])
549
 
550
  else:
 
527
  style["margin-right"] = 0
528
 
529
  #return dbc.Card(text, style=style, body=True, color="primary", inverse=True)
530
+ return html.Div(dmc.Badge(text, size="xl", variant="gradient", gradient={"from": "grape", "to": "pink"},), style=styleUSERIA)
531
 
532
  elif box == "AI":
533
  style["margin-left"] = 0
 
542
  "float": "left",
543
  },
544
  )
545
+ text = f"""{text}"""
546
+ text = text.replace(" ","")
547
+ textbox = dmc.Card(children=[dcc.Markdown(text, style={"font-size":"0.8em"})],withBorder=False,w="100%", style=styleSYSIA)
548
  return html.Div([thumbnail, textbox])
549
 
550
  else: