entropy25 commited on
Commit
3c88859
Β·
verified Β·
1 Parent(s): 002e3ba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +77 -13
README.md CHANGED
@@ -1,19 +1,83 @@
1
  ---
2
- title: Production Data Analysis
3
- emoji: πŸš€
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
  pinned: false
11
- short_description: Streamlit template space
12
  ---
13
 
14
- # Welcome to Streamlit!
15
 
16
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
17
 
18
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Production Data Analysis with AI
3
+ emoji: 🏭
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: streamlit
7
+ sdk_version: 1.28.0
8
+ app_file: app.py
 
9
  pinned: false
10
+ license: mit
11
  ---
12
 
13
+ # Production Data Analysis Dashboard with AI Assistant
14
 
15
+ A comprehensive Streamlit application for analyzing production data with integrated Google Gemini AI assistant for intelligent insights.
16
 
17
+ ## ✨ Features
18
+
19
+ ### πŸ“Š Data Analysis
20
+ - **Production Overview**: Total production, daily averages, and trends
21
+ - **Material Analysis**: Breakdown by material types with detailed statistics
22
+ - **Time Patterns**: Weekly and monthly production patterns
23
+ - **Anomaly Detection**: Automatic detection of production outliers
24
+ - **Interactive Visualizations**: Plotly charts for deep data exploration
25
+
26
+ ### πŸ€– AI Assistant
27
+ - **Intelligent Q&A**: Ask questions about your production data in natural language
28
+ - **Quick Insights**: Pre-built questions for common analysis needs
29
+ - **Data-Driven Recommendations**: AI-powered optimization suggestions
30
+ - **Context-Aware**: AI understands your specific production data context
31
+
32
+ ## πŸš€ Quick Start
33
+
34
+ 1. **Upload Data**: Upload your production CSV file
35
+ 2. **View Analysis**: Explore automated charts and statistics
36
+ 3. **Ask AI**: Use the AI assistant for deeper insights
37
+ 4. **Get Recommendations**: Receive optimization suggestions
38
+
39
+ ## πŸ“‹ Data Format
40
+
41
+ Your CSV file should contain:
42
+ - `date`: Date in MM/DD/YYYY format
43
+ - `weight_kg`: Production weight in kilograms
44
+ - `material_type`: Type of material (liquid, solid, waste_water, etc.)
45
+ - `shift`: Shift number (optional)
46
+
47
+ File should be tab-separated (TSV format with .csv extension).
48
+
49
+ ## πŸ”§ Setup for Development
50
+
51
+ 1. Clone the repository
52
+ 2. Install dependencies: `pip install -r requirements.txt`
53
+ 3. Add your Google API key to `.streamlit/secrets.toml`
54
+ 4. Run: `streamlit run app.py`
55
+
56
+ ## πŸ”‘ API Configuration
57
+
58
+ To enable AI features, add your Google Gemini API key:
59
+
60
+ 1. Get API key from [Google AI Studio](https://makersuite.google.com/app/apikey)
61
+ 2. In Hugging Face Spaces: Go to Settings β†’ Secrets β†’ Add `GOOGLE_API_KEY`
62
+ 3. For local development: Add to `.streamlit/secrets.toml`
63
+
64
+ ## πŸ› οΈ Technology Stack
65
+
66
+ - **Frontend**: Streamlit
67
+ - **Data Processing**: Pandas, NumPy
68
+ - **Visualizations**: Plotly
69
+ - **AI Integration**: Google Gemini 1.5
70
+ - **Deployment**: Hugging Face Spaces
71
+
72
+ ## πŸ“ˆ Sample Insights
73
+
74
+ The AI assistant can help you understand:
75
+ - Production efficiency patterns
76
+ - Material type correlations
77
+ - Seasonal trends and anomalies
78
+ - Optimization opportunities
79
+ - Quality control recommendations
80
+
81
+ ## 🀝 Contributing
82
+
83
+ Feel free to submit issues and enhancement requests!