Update main.py
Browse files
main.py
CHANGED
@@ -91,14 +91,14 @@ async def on_chat_start():
|
|
91 |
{question} [/INST] </s>
|
92 |
"""
|
93 |
prompt = PromptTemplate(template=template, input_variables=["question","context"])
|
94 |
-
llm = await IA()
|
95 |
-
chain = (
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
)
|
101 |
-
cl.user_session.set("runnable", chain)
|
102 |
|
103 |
@cl.on_message
|
104 |
async def on_message(message: cl.Message):
|
|
|
91 |
{question} [/INST] </s>
|
92 |
"""
|
93 |
prompt = PromptTemplate(template=template, input_variables=["question","context"])
|
94 |
+
#llm = await IA()
|
95 |
+
#chain = (
|
96 |
+
# RunnablePassthrough.assign(
|
97 |
+
# history=RunnableLambda(memory.load_memory_variables) | itemgetter("history")
|
98 |
+
# )
|
99 |
+
# | prompt | llm
|
100 |
+
#)
|
101 |
+
#cl.user_session.set("runnable", chain)
|
102 |
|
103 |
@cl.on_message
|
104 |
async def on_message(message: cl.Message):
|