Spaces:
Runtime error
Runtime error
Commit
·
16ef1ca
1
Parent(s):
e81a698
update memo UI
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ import langchain
|
|
62 |
|
63 |
langchain.debug = True
|
64 |
global memory
|
65 |
-
memory =
|
66 |
global memory_openai
|
67 |
memory_openai = ConversationBufferWindowMemory(memory_key="memory", return_messages=True)
|
68 |
global last_request
|
@@ -734,7 +734,7 @@ with gr.Blocks() as demo:
|
|
734 |
agentchoice = gr.Dropdown(
|
735 |
choices=['Zero Short Agent','Zero Short React','OpenAI Multi'],
|
736 |
label="SELECT AI AGENT",
|
737 |
-
scale=
|
738 |
show_label = True,
|
739 |
value="Zero Short Agent",
|
740 |
)
|
|
|
62 |
|
63 |
langchain.debug = True
|
64 |
global memory
|
65 |
+
memory = ConversationBufferWindowMemory(memory_key="chat_history")
|
66 |
global memory_openai
|
67 |
memory_openai = ConversationBufferWindowMemory(memory_key="memory", return_messages=True)
|
68 |
global last_request
|
|
|
734 |
agentchoice = gr.Dropdown(
|
735 |
choices=['Zero Short Agent','Zero Short React','OpenAI Multi'],
|
736 |
label="SELECT AI AGENT",
|
737 |
+
scale= 2,
|
738 |
show_label = True,
|
739 |
value="Zero Short Agent",
|
740 |
)
|