binaychandra commited on
Commit
2268419
·
verified ·
1 Parent(s): 0532618

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -69,7 +69,7 @@ if "chat_history" not in st.session_state:
69
  st.session_state["chat_history"] = []
70
 
71
  # Example Section
72
- st.markdown("### Try some example questions:")
73
  examples = [
74
  "Show me the top 10 products by sales.",
75
  "What are the average sales by region?",
@@ -78,10 +78,10 @@ examples = [
78
 
79
  # Display examples with a button to load them as input
80
  for example in examples:
81
- if st.button(f"Ask: {example}"):
82
  # Set the example text in a temporary session key and submit
83
- st.session_state["example_input"] = example
84
- chat_actions() # Trigger chat as if user entered this example
85
 
86
  with st.chat_message("assistant"):
87
  st.write("Hello 👋 How can I help you today?")
 
69
  st.session_state["chat_history"] = []
70
 
71
  # Example Section
72
+ st.markdown("##### Try some example questions:")
73
  examples = [
74
  "Show me the top 10 products by sales.",
75
  "What are the average sales by region?",
 
78
 
79
  # Display examples with a button to load them as input
80
  for example in examples:
81
+ st.text_area(f"Ask: {example}"):
82
  # Set the example text in a temporary session key and submit
83
+ # st.session_state["example_input"] = example
84
+ # chat_actions() # Trigger chat as if user entered this example
85
 
86
  with st.chat_message("assistant"):
87
  st.write("Hello 👋 How can I help you today?")