Spaces:
Runtime error
Runtime error
ageraustine
commited on
Commit
•
9ebeab8
1
Parent(s):
7084404
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ st.title("LangChain Chat")
|
|
104 |
conversation_history = []
|
105 |
|
106 |
while True:
|
107 |
-
user_input = st.
|
108 |
|
109 |
if st.button("Send"):
|
110 |
if user_input:
|
@@ -119,9 +119,6 @@ while True:
|
|
119 |
elif key == "Output from node 'profile':":
|
120 |
conversation_history.append(("Bot", value))
|
121 |
|
122 |
-
# Display conversation history
|
123 |
-
st.text_area("Conversation:", value="\n".join([f"{sender}: {message}" for sender, message in conversation_history]))
|
124 |
-
|
125 |
# Allow the user to quit the chat
|
126 |
if st.button("Quit"):
|
127 |
st.text("Bot: Byebye")
|
|
|
104 |
conversation_history = []
|
105 |
|
106 |
while True:
|
107 |
+
user_input = st.chat_input("You:", "")
|
108 |
|
109 |
if st.button("Send"):
|
110 |
if user_input:
|
|
|
119 |
elif key == "Output from node 'profile':":
|
120 |
conversation_history.append(("Bot", value))
|
121 |
|
|
|
|
|
|
|
122 |
# Allow the user to quit the chat
|
123 |
if st.button("Quit"):
|
124 |
st.text("Bot: Byebye")
|