Spaces:
Build error
Build error
bentebbutt
commited on
Commit
•
ab4ff74
1
Parent(s):
07bdcb4
Update backend/app.py
Browse files- backend/app.py +6 -6
backend/app.py
CHANGED
@@ -33,9 +33,9 @@ async def on_chat_start():
|
|
33 |
max_output_tokens=200,
|
34 |
timeout=45,
|
35 |
)
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
33 |
max_output_tokens=200,
|
34 |
timeout=45,
|
35 |
)
|
36 |
+
agent = lr.ChatAgent(lr.ChatAgentConfig(llm=lm_config))
|
37 |
+
task = lr.Task(agent, interactive=True)
|
38 |
+
|
39 |
+
msg = "Help me with some questions"
|
40 |
+
lr.ChainlitTaskCallbacks(task)
|
41 |
+
await task.run_async(msg)
|