alonsosilva commited on
Commit
29487e8
·
1 Parent(s): f0f4ec9

Make the text block reactive

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,6 @@ def add_chunk_to_ai_message(chunk: str):
96
  },
97
  ]
98
 
99
- text_block="Alice is 18 years old, Bob is two years older and Charles is 30 years old."
100
 
101
  # DISPLAYED OUTPUT
102
  @solara.component
@@ -108,6 +107,7 @@ def ChatInterface():
108
 
109
  messages: solara.Reactive[List[MessageDict]] = solara.reactive([])
110
  aux = solara.reactive("")
 
111
  @solara.component
112
  def Page():
113
  with solara.Head():
 
96
  },
97
  ]
98
 
 
99
 
100
  # DISPLAYED OUTPUT
101
  @solara.component
 
107
 
108
  messages: solara.Reactive[List[MessageDict]] = solara.reactive([])
109
  aux = solara.reactive("")
110
+ text_block = solara.reactive("Alice is 18 years old, Bob is ten years older and Charles is thirty years old.")
111
  @solara.component
112
  def Page():
113
  with solara.Head():