Spaces:
Sleeping
Sleeping
Commit History
-
Switch LLM backend from Anthropic to Gemini 2.0 Flash (free tier)
ClaudeUnverified signature4f62127 -
Add AI chatbot for data visualization and table generation
ClaudeUnverified signatureBuilds a Streamlit chatbot that accepts CSV/Excel datasets and answers natural language queries by generating pandas + Plotly code via Claude claude-opus-4-6. Each response includes an explanation, a results table, and an interactive chart rendered automatically. Key components: - app.py: Streamlit chat UI with sidebar upload and example queries - utils/llm_handler.py: Claude API integration with adaptive thinking, conversation history, and structured JSON response parsing - utils/data_handler.py: Safe pandas code execution in restricted namespace - utils/viz_handler.py: Safe Plotly code execution with fallback charts - sample_data/employees.csv: 809-row employee salary dataset (2021–2024, 213 employees, 8 departments, 35 job titles) - generate_sample_data.py: Script to regenerate the sample dataset https://claude.ai/code/session_018NrotqUhoTDFbcMTpnK7e652b35ff