Spaces:
Sleeping
Sleeping
vishalkatheriya18
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,20 +19,18 @@ def response_generator():
|
|
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 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
# Initialize chat history
|
38 |
if "messages" not in st.session_state:
|
|
|
19 |
|
20 |
st.title("Simple chat")
|
21 |
|
|
|
|
|
|
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
option = st.sidebar.selectbox(
|
25 |
+
"How would you like to be contacted?",
|
26 |
+
("Email", "Home phone", "Mobile phone"),
|
27 |
+
)
|
28 |
+
|
29 |
+
st.sidebar.write("You selected:", option)
|
30 |
+
|
31 |
+
st.sidebar.spinner("Loading..."):
|
32 |
+
time.sleep(5)
|
33 |
+
st.sidebar.success("Done!")
|
34 |
|
35 |
# Initialize chat history
|
36 |
if "messages" not in st.session_state:
|