Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ llm = ChatOpenAI(temperature=0.0, model='gpt-3.5-turbo', openai_api_key="sk-9hWF
|
|
38 |
#memory = ConversationBufferMemory()
|
39 |
|
40 |
#memory = RunnableWithMessageHistory()
|
41 |
-
|
42 |
# conversation = ConversationChain(
|
43 |
# llm=llm,
|
44 |
# memory=memory)
|
@@ -53,7 +53,7 @@ def get_session_history():
|
|
53 |
# 메모리 및 대화 초기화
|
54 |
memory = RunnableWithMessageHistory(runnable=llm, get_session_history=get_session_history)
|
55 |
|
56 |
-
|
57 |
|
58 |
|
59 |
|
|
|
38 |
#memory = ConversationBufferMemory()
|
39 |
|
40 |
#memory = RunnableWithMessageHistory()
|
41 |
+
|
42 |
# conversation = ConversationChain(
|
43 |
# llm=llm,
|
44 |
# memory=memory)
|
|
|
53 |
# 메모리 및 대화 초기화
|
54 |
memory = RunnableWithMessageHistory(runnable=llm, get_session_history=get_session_history)
|
55 |
|
56 |
+
conversation = RunnableWithMessageHistory(llm=llm, memory=memory)
|
57 |
|
58 |
|
59 |
|