Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,16 +91,21 @@ if "chat_history" not in st.session_state:
|
|
| 91 |
st.session_state["chat_history"] = []
|
| 92 |
|
| 93 |
# Example Section
|
| 94 |
-
st.markdown("
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
# Display examples with a button to load them as input
|
| 102 |
-
for example in examples:
|
| 103 |
-
|
| 104 |
# Set the example text in a temporary session key and submit
|
| 105 |
# st.session_state["example_input"] = example
|
| 106 |
# chat_actions() # Trigger chat as if user entered this example
|
|
|
|
| 91 |
st.session_state["chat_history"] = []
|
| 92 |
|
| 93 |
# Example Section
|
| 94 |
+
st.markdown("""
|
| 95 |
+
###### Try some example questions:
|
| 96 |
+
- Show me the top 10 products by sales.
|
| 97 |
+
- What are the average sales by region?
|
| 98 |
+
- Give me the monthly sales trend for the last year.
|
| 99 |
+
""")
|
| 100 |
+
# examples = [
|
| 101 |
+
# "Show me the top 10 products by sales.",
|
| 102 |
+
# "What are the average sales by region?",
|
| 103 |
+
# "Give me the monthly sales trend for the last year.",
|
| 104 |
+
# ]
|
| 105 |
|
| 106 |
# Display examples with a button to load them as input
|
| 107 |
+
# for example in examples:
|
| 108 |
+
# st.label(f"Ask: {example}")
|
| 109 |
# Set the example text in a temporary session key and submit
|
| 110 |
# st.session_state["example_input"] = example
|
| 111 |
# chat_actions() # Trigger chat as if user entered this example
|