Eric0801
4956bdca5f
fix: ensure plotly backend is set in result_view and custom routes
...
- Add pd.options.plotting.backend = 'plotly' at route level
- Fixes matplotlib ImportError in Railway deployment
- Ensures DataFrame.plot() uses plotly instead of matplotlib
- Resolves Internal Server Error on result_view pages
2 months ago
Eric0801
e75773733c
fix: use role_map.get() to handle missing role keys safely
...
- Replace role_map[key] with role_map.get(key, key) to prevent KeyError
- Affects result_view and custom routes
- Ensures backward compatibility with old strategy data
- Fixes issue where strategies with unmapped roles cause page crashes
2 months ago
Eric0801
efbb22494e
fix: improve load_assets error handling and logging
...
- Split data_tw and data_us loading into separate try-catch blocks
- Add detailed logging for successful loads and errors
- Ensure variables are always initialized to empty dict on failure
- Fix potential None value issue in strategy_tw route
2 months ago
Eric0801
d3dd4efc53
debug: add detailed logging for Flask initialization
2 months ago
Eric0801
b50b9ee92d
fix: lazy load assets files to prevent startup failure
2 months ago
Eric0801
cbd580bb12
feat: V2 prompt system with benchmarks and CoT for Demo Day
...
- Add investment_advice_v2.py (educational content)
- Add market_benchmark.py (0050.TW/SPY real-time data)
- Update main.py (CoT parameter support)
- Update llm_service.py (V2 integration)
- Update result_view.html (CoT toggle, marked.js)
- Add render.yaml (deployment config)
- Update .gitignore (protect .env, node_modules, logs)
2 months ago
Eric0801
45e9ea7ec2
Add LLM investment advice feature with OpenAI integration\n\n- Created llm_service.py with comprehensive LLM advisor\n- Added config_openai.py for API configuration\n- Created prompts/investment_advice.py with prompt templates\n- Updated requirements.txt with OpenAI dependency\n- Modified main.py with /api/llm_advice endpoint\n- Enhanced result_view.html with LLM advice section\n- Added CSS styling for better UI\n- Created LLM_SETUP.md setup guide\n- Added test_llm_service.py for testing\n- Implemented caching, retry logic, and error handling\n- Features: strategy analysis, risk assessment, market insights
3 months ago
joseph
493dd6f89f
add new class
2 years ago
joseph
8cb0ea7b6d
add effective user&strategy and strategy result show time interval to second
2 years ago
joseph
645fb069fd
20230721 Finished auto deploy
2 years ago
joseph
9e7c4c973b
init
2 years ago