Spaces:
Sleeping
Sleeping
vishalkatheriya18
commited on
Update app.py
Browse files
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 = []
|