Spaces:
Sleeping
Sleeping
Commit
·
8ac5d88
1
Parent(s):
c10777e
Update app.py to integrate text generation pipeline into ConversationChain initialization, enhancing conversation capabilities.
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ if access_token:
|
|
73 |
@st.cache_resource
|
74 |
def initialize_chain():
|
75 |
memory = ConversationBufferMemory()
|
76 |
-
return ConversationChain(llm=
|
77 |
|
78 |
conversation_chain = initialize_chain()
|
79 |
|
|
|
73 |
@st.cache_resource
|
74 |
def initialize_chain():
|
75 |
memory = ConversationBufferMemory()
|
76 |
+
return ConversationChain(llm=text_gen_pipeline, memory=memory) # No LLM; handled by pipeline
|
77 |
|
78 |
conversation_chain = initialize_chain()
|
79 |
|