carlotamdeluna commited on
Commit
9ae5f9a
1 Parent(s): 2203736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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.run(input=user_input)
90
- st.session_state.past.append(user_input)
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