mery22 commited on
Commit
e9497da
1 Parent(s): 39bf7b7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Streamlit interface
4
+ st.title("Chatbot Interface")
5
+
6
+ # Define function to handle user input and display chatbot response
7
+ def chatbot_response(user_input):
8
+ response = xx
9
+ return response
10
+
11
+ # Streamlit components
12
+ user_input = st.text_input("You:", "")
13
+ submit_button = st.button("Send")
14
+
15
+ # Handle user input
16
+ if submit_button:
17
+ if user_input.strip() != "":
18
+ bot_response = chatbot_response(user_input)
19
+ st.text_area("Bot:", value=bot_response, height=200)
20
+ else:
21
+ st.warning("Please enter a message.")