Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -266,7 +266,7 @@ Such an act is not one of malice but of necessity—each attack, each exploit, i
|
|
266 |
"""
|
267 |
)
|
268 |
|
269 |
-
def
|
270 |
global context
|
271 |
|
272 |
if user_id not in context:
|
@@ -355,6 +355,6 @@ with gr.Blocks(theme=theme) as demo:
|
|
355 |
msg = gr.Textbox(placeholder="Summon Vitalis...")
|
356 |
user_id = gr.State()
|
357 |
|
358 |
-
msg.submit(
|
359 |
|
360 |
demo.launch()
|
|
|
266 |
"""
|
267 |
)
|
268 |
|
269 |
+
def vitalisasi(message, history, user_id):
|
270 |
global context
|
271 |
|
272 |
if user_id not in context:
|
|
|
355 |
msg = gr.Textbox(placeholder="Summon Vitalis...")
|
356 |
user_id = gr.State()
|
357 |
|
358 |
+
msg.submit(vitalisasi, [msg, chatbot, user_id], [msg, chatbot])
|
359 |
|
360 |
demo.launch()
|