camparchimedes commited on
Commit
86afb6f
·
verified ·
1 Parent(s): 87394d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -146,19 +146,18 @@ class LLMChainConfig(BaseModel):
146
  instruction_text_priv: str
147
  personvernspolicy_data: dict
148
 
149
- # After defining your other configurations...
150
- llm_chain = LLMChain(
151
- llm=llm,
152
- prompt=daysoff_assistant_prompt,
153
- memory=conversation_memory,
154
- **LLMChainConfig(
155
- instruction_text_faq=instruction_text_faq,
156
- faq=faq,
157
- instruction_text_priv=instruction_text_priv,
158
- personvernspolicy_data=personvernspolicy_data
159
- ).model_dump()
160
- )
161
-
162
  cl.user_session.set("llm_chain", llm_chain)
163
 
164
  api_chain = APIChain.from_llm_and_api_docs(
 
146
  instruction_text_priv: str
147
  personvernspolicy_data: dict
148
 
149
+ llm_chain = LLMChain(
150
+ llm=llm,
151
+ prompt=daysoff_assistant_prompt,
152
+ memory=conversation_memory,
153
+ **LLMChainConfig(
154
+ instruction_text_faq=instruction_text_faq,
155
+ faq=faq,
156
+ instruction_text_priv=instruction_text_priv,
157
+ personvernspolicy_data=personvernspolicy_data
158
+ ).model_dump()
159
+ )
160
+
 
161
  cl.user_session.set("llm_chain", llm_chain)
162
 
163
  api_chain = APIChain.from_llm_and_api_docs(