Spaces:
Sleeping
Sleeping
carlotamdeluna
commited on
Commit
•
9ae5f9a
1
Parent(s):
2203736
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ conversation_buf = ConversationChain(llm = llm,
|
|
48 |
verbose = True)
|
49 |
|
50 |
|
51 |
-
|
52 |
if "generated" not in st.session_state:
|
53 |
st.session_state["generated"] = []
|
54 |
if "past" not in st.session_state:
|
@@ -57,7 +57,7 @@ if "input" not in st.session_state:
|
|
57 |
st.session_state["input"] = ""
|
58 |
if "stored_session" not in st.session_state:
|
59 |
st.session_state["stored_session"] = []
|
60 |
-
|
61 |
|
62 |
|
63 |
|
@@ -86,7 +86,6 @@ Conversation = ConversationChain(llm = llm,
|
|
86 |
|
87 |
submit = st.button("Generate")
|
88 |
while submit:
|
89 |
-
output = Conversation.
|
90 |
-
|
91 |
-
st.session_state.generated.append(output)
|
92 |
|
|
|
48 |
verbose = True)
|
49 |
|
50 |
|
51 |
+
|
52 |
if "generated" not in st.session_state:
|
53 |
st.session_state["generated"] = []
|
54 |
if "past" not in st.session_state:
|
|
|
57 |
st.session_state["input"] = ""
|
58 |
if "stored_session" not in st.session_state:
|
59 |
st.session_state["stored_session"] = []
|
60 |
+
|
61 |
|
62 |
|
63 |
|
|
|
86 |
|
87 |
submit = st.button("Generate")
|
88 |
while submit:
|
89 |
+
output = Conversation.invoke(input=user_input)
|
90 |
+
|
|
|
91 |
|