Update app.py
Browse files
app.py
CHANGED
@@ -66,12 +66,12 @@ def handleEnter(*args):
|
|
66 |
if str(args[2]['key'])=='Enter':
|
67 |
message = args[0].v_model
|
68 |
print(message)
|
|
|
69 |
sendMessage(message)
|
70 |
|
71 |
|
72 |
prompt = solara.reactive('')
|
73 |
messages = solara.reactive([])
|
74 |
-
input_text = solara.reactive('')
|
75 |
|
76 |
@solara.component
|
77 |
def ColumnLayout(children):
|
@@ -80,6 +80,8 @@ def ColumnLayout(children):
|
|
80 |
|
81 |
@solara.component
|
82 |
def Page():
|
|
|
|
|
83 |
with solara.AppLayout(title="EBTI GPT"):
|
84 |
solara.AppBarTitle(children=[])
|
85 |
with rv.Card(flat=True):
|
|
|
66 |
if str(args[2]['key'])=='Enter':
|
67 |
message = args[0].v_model
|
68 |
print(message)
|
69 |
+
inputText.set('')
|
70 |
sendMessage(message)
|
71 |
|
72 |
|
73 |
prompt = solara.reactive('')
|
74 |
messages = solara.reactive([])
|
|
|
75 |
|
76 |
@solara.component
|
77 |
def ColumnLayout(children):
|
|
|
80 |
|
81 |
@solara.component
|
82 |
def Page():
|
83 |
+
input_text = solara.reactive('')
|
84 |
+
|
85 |
with solara.AppLayout(title="EBTI GPT"):
|
86 |
solara.AppBarTitle(children=[])
|
87 |
with rv.Card(flat=True):
|