Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def chatbot(input_text):
|
4 |
+
return input_text
|
5 |
+
|
6 |
+
st.title("Chatbot App")
|
7 |
+
|
8 |
+
user_input = st.text_input("Enter your message:")
|
9 |
+
if st.button("Send"):
|
10 |
+
if user_input:
|
11 |
+
bot_response = chatbot(user_input)
|
12 |
+
st.text("Bot Response:")
|
13 |
+
st.write(bot_response)
|
14 |
+
else:
|
15 |
+
st.warning("Please enter a message.")
|