Spaces:
Build error
Build error
Merge branch 'main' of https://github.com/hari-huynh/jobqa-hfspace
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ async def on_message(message: cl.Message):
|
|
50 |
|
51 |
llm_chain = cl.user_session.get("runnable")
|
52 |
|
53 |
-
response =
|
54 |
-
{"input": message.content}, callbacks = [cl.
|
55 |
)
|
56 |
|
57 |
await cl.Message(response["output"].replace("`", "")).send()
|
|
|
50 |
|
51 |
llm_chain = cl.user_session.get("runnable")
|
52 |
|
53 |
+
response = llm_chain.invoke(
|
54 |
+
{"input": message.content}, callbacks = [cl.LangchainCallbackHandler()]
|
55 |
)
|
56 |
|
57 |
await cl.Message(response["output"].replace("`", "")).send()
|