Spaces:
Running
Running
Update app.py
Browse files
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("
|
| 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 |
-
|
| 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?")
|