binaychandra commited on
Commit
6b99c67
·
verified ·
1 Parent(s): 2ed5392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -33,7 +33,22 @@ st.markdown("""
33
 
34
  # Title section
35
  st.markdown("<h1 class='title'>E-Commerce Analysis</h1>", unsafe_allow_html=True)
36
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  with st.chat_message("assistant"):
38
  st.write("Hello 👋 How can I help you today?")
39
 
 
33
 
34
  # Title section
35
  st.markdown("<h1 class='title'>E-Commerce Analysis</h1>", unsafe_allow_html=True)
36
+
37
+ # Example Section
38
+ st.markdown("### Try some example questions:")
39
+ examples = [
40
+ "Show me the top 10 products by sales.",
41
+ "What are the average sales by region?",
42
+ "Give me the monthly sales trend for the last year.",
43
+ ]
44
+
45
+ # Display examples with a button to load them into the chat
46
+ for example in examples:
47
+ if st.button(f"Ask: {example}"):
48
+ # Populate input with example and submit
49
+ st.session_state["chat_input"] = example
50
+ chat_actions()
51
+
52
  with st.chat_message("assistant"):
53
  st.write("Hello 👋 How can I help you today?")
54