datacipen commited on
Commit
0b4c402
1 Parent(s): 339ef8e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -8
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
- 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):
 
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):