vishalkatheriya18 commited on
Commit
32a43d6
·
verified ·
1 Parent(s): e489b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -19,6 +19,21 @@ def response_generator():
19
 
20
  st.title("Simple chat")
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  # Initialize chat history
23
  if "messages" not in st.session_state:
24
  st.session_state.messages = []
 
19
 
20
  st.title("Simple chat")
21
 
22
+ with st.sidebar:
23
+ with st.echo():
24
+ st.write("This code will be printed to the sidebar.")
25
+
26
+ option = st.sidebar.selectbox(
27
+ "How would you like to be contacted?",
28
+ ("Email", "Home phone", "Mobile phone"),
29
+ )
30
+
31
+ st.sidebar.write("You selected:", option)
32
+
33
+ with st.spinner("Loading..."):
34
+ time.sleep(5)
35
+ st.success("Done!")
36
+
37
  # Initialize chat history
38
  if "messages" not in st.session_state:
39
  st.session_state.messages = []