Update main.py
Browse files
main.py
CHANGED
@@ -62,16 +62,16 @@ async def start():
|
|
62 |
cl.Text(content=contentPrompts, name=listPrompts_name, display="side")
|
63 |
)
|
64 |
await cl.Message(content="📚 " + listPrompts_name, elements=prompt_elements).send()
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
|
76 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
77 |
memory = cl.user_session.get("memory")
|
@@ -107,6 +107,7 @@ async def start():
|
|
107 |
| model
|
108 |
)
|
109 |
cl.user_session.set("runnable", runnable)
|
|
|
110 |
|
111 |
@cl.on_message
|
112 |
async def main(message: cl.Message):
|
|
|
62 |
cl.Text(content=contentPrompts, name=listPrompts_name, display="side")
|
63 |
)
|
64 |
await cl.Message(content="📚 " + listPrompts_name, elements=prompt_elements).send()
|
65 |
+
settings = await cl.ChatSettings(
|
66 |
+
[
|
67 |
+
Select(
|
68 |
+
id="Model",
|
69 |
+
label="Publications de recherche",
|
70 |
+
values=["---", "HAL", "Persée"],
|
71 |
+
initial_index=0,
|
72 |
+
),
|
73 |
+
]
|
74 |
+
).send()
|
75 |
|
76 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
77 |
memory = cl.user_session.get("memory")
|
|
|
107 |
| model
|
108 |
)
|
109 |
cl.user_session.set("runnable", runnable)
|
110 |
+
return runnable
|
111 |
|
112 |
@cl.on_message
|
113 |
async def main(message: cl.Message):
|