Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -12
src/streamlit_app.py
CHANGED
|
@@ -7,10 +7,6 @@ from llama_index.core.agent import ReActAgent
|
|
| 7 |
from llama_index.core.workflow import Context
|
| 8 |
from llama_index.core.tools import FunctionTool
|
| 9 |
|
| 10 |
-
import os
|
| 11 |
-
print("Current directory:", os.getcwd())
|
| 12 |
-
print("Files here:", os.listdir('.'))
|
| 13 |
-
|
| 14 |
# --- Import tools class ---
|
| 15 |
from tools import PokemonAdvisorTools
|
| 16 |
|
|
@@ -99,13 +95,8 @@ def ask_advisor(user_message):
|
|
| 99 |
st.title("🤖 cAsh Robo-Advisor")
|
| 100 |
st.markdown("""
|
| 101 |
**Your AI Quantitative Analyst for Pokemon Cards.**
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
* **Arbitrage:** "What are the best grading opportunities?"
|
| 105 |
-
* **Risk:** "Is Pikachu EX a safe investment?"
|
| 106 |
-
* **Trends:** "What is crashing right now?"
|
| 107 |
-
* **Sets:** "How is Evolving Skies performing?"
|
| 108 |
-
""")
|
| 109 |
|
| 110 |
# --- 6. Sidebar Examples ---
|
| 111 |
st.sidebar.header("Example Queries")
|
|
@@ -132,7 +123,7 @@ for message in st.session_state.messages:
|
|
| 132 |
st.markdown(message["content"])
|
| 133 |
|
| 134 |
# --- 8. Chat Input Logic ---
|
| 135 |
-
if prompt := st.chat_input("Ask
|
| 136 |
# Display user message
|
| 137 |
with st.chat_message("user"):
|
| 138 |
st.markdown(prompt)
|
|
|
|
| 7 |
from llama_index.core.workflow import Context
|
| 8 |
from llama_index.core.tools import FunctionTool
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# --- Import tools class ---
|
| 11 |
from tools import PokemonAdvisorTools
|
| 12 |
|
|
|
|
| 95 |
st.title("🤖 cAsh Robo-Advisor")
|
| 96 |
st.markdown("""
|
| 97 |
**Your AI Quantitative Analyst for Pokemon Cards.**
|
| 98 |
+
"""
|
| 99 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
# --- 6. Sidebar Examples ---
|
| 102 |
st.sidebar.header("Example Queries")
|
|
|
|
| 123 |
st.markdown(message["content"])
|
| 124 |
|
| 125 |
# --- 8. Chat Input Logic ---
|
| 126 |
+
if prompt := st.chat_input("Ask cAsh..."):
|
| 127 |
# Display user message
|
| 128 |
with st.chat_message("user"):
|
| 129 |
st.markdown(prompt)
|