Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +422 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: pink
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: auto-forecast-rev1
|
3 |
+
emoji: 🐳
|
4 |
colorFrom: pink
|
5 |
+
colorTo: green
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,422 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>AutoParts Forecast Pro</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gradient-bg {
|
11 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
|
12 |
+
}
|
13 |
+
.chart-container {
|
14 |
+
height: 400px;
|
15 |
+
position: relative;
|
16 |
+
}
|
17 |
+
.highlight-cell {
|
18 |
+
animation: pulse 2s infinite;
|
19 |
+
}
|
20 |
+
@keyframes pulse {
|
21 |
+
0% { background-color: rgba(239, 68, 68, 0.1); }
|
22 |
+
50% { background-color: rgba(239, 68, 68, 0.3); }
|
23 |
+
100% { background-color: rgba(239, 68, 68, 0.1); }
|
24 |
+
}
|
25 |
+
.file-upload {
|
26 |
+
border: 2px dashed #cbd5e0;
|
27 |
+
transition: all 0.3s ease;
|
28 |
+
}
|
29 |
+
.file-upload:hover {
|
30 |
+
border-color: #3b82f6;
|
31 |
+
background-color: #f8fafc;
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
</head>
|
35 |
+
<body class="bg-gray-50 font-sans">
|
36 |
+
<div class="min-h-screen flex flex-col">
|
37 |
+
<!-- Header -->
|
38 |
+
<header class="gradient-bg text-white shadow-lg">
|
39 |
+
<div class="container mx-auto px-4 py-6">
|
40 |
+
<div class="flex justify-between items-center">
|
41 |
+
<div class="flex items-center space-x-3">
|
42 |
+
<i class="fas fa-car-side text-3xl"></i>
|
43 |
+
<h1 class="text-2xl font-bold">AutoParts Forecast Pro</h1>
|
44 |
+
</div>
|
45 |
+
<nav>
|
46 |
+
<ul class="flex space-x-6">
|
47 |
+
<li><a href="#" class="hover:text-blue-200 transition"><i class="fas fa-home mr-1"></i> Home</a></li>
|
48 |
+
<li><a href="#" class="hover:text-blue-200 transition"><i class="fas fa-chart-line mr-1"></i> Analytics</a></li>
|
49 |
+
<li><a href="#" class="hover:text-blue-200 transition"><i class="fas fa-cog mr-1"></i> Settings</a></li>
|
50 |
+
</ul>
|
51 |
+
</nav>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</header>
|
55 |
+
|
56 |
+
<!-- Main Content -->
|
57 |
+
<main class="flex-grow container mx-auto px-4 py-8">
|
58 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
59 |
+
<!-- Left Sidebar - Data Input -->
|
60 |
+
<div class="lg:col-span-1 space-y-6">
|
61 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
62 |
+
<h2 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
|
63 |
+
<i class="fas fa-database mr-2 text-blue-500"></i> Data Input
|
64 |
+
</h2>
|
65 |
+
|
66 |
+
<!-- File Upload -->
|
67 |
+
<div class="file-upload rounded-lg p-4 mb-6 text-center cursor-pointer">
|
68 |
+
<input type="file" id="salesData" class="hidden" accept=".csv,.xlsx,.xls">
|
69 |
+
<label for="salesData" class="cursor-pointer">
|
70 |
+
<i class="fas fa-file-upload text-4xl text-blue-400 mb-2"></i>
|
71 |
+
<p class="font-medium text-gray-700">Upload Sales Data</p>
|
72 |
+
<p class="text-sm text-gray-500 mt-1">CSV or Excel format</p>
|
73 |
+
</label>
|
74 |
+
</div>
|
75 |
+
|
76 |
+
<div class="file-upload rounded-lg p-4 mb-6 text-center cursor-pointer">
|
77 |
+
<input type="file" id="carParcData" class="hidden" accept=".csv,.xlsx,.xls">
|
78 |
+
<label for="carParcData" class="cursor-pointer">
|
79 |
+
<i class="fas fa-car text-4xl text-blue-400 mb-2"></i>
|
80 |
+
<p class="font-medium text-gray-700">Upload Car Parc Data</p>
|
81 |
+
<p class="text-sm text-gray-500 mt-1">Vehicle population statistics</p>
|
82 |
+
</label>
|
83 |
+
</div>
|
84 |
+
|
85 |
+
<!-- Parameters -->
|
86 |
+
<div class="space-y-4">
|
87 |
+
<h3 class="font-medium text-gray-700 flex items-center">
|
88 |
+
<i class="fas fa-sliders-h mr-2 text-blue-500"></i> Forecast Parameters
|
89 |
+
</h3>
|
90 |
+
|
91 |
+
<div>
|
92 |
+
<label for="forecastPeriod" class="block text-sm font-medium text-gray-700 mb-1">Forecast Period (months)</label>
|
93 |
+
<select id="forecastPeriod" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
94 |
+
<option>6</option>
|
95 |
+
<option selected>12</option>
|
96 |
+
<option>18</option>
|
97 |
+
<option>24</option>
|
98 |
+
</select>
|
99 |
+
</div>
|
100 |
+
|
101 |
+
<div>
|
102 |
+
<label for="category" class="block text-sm font-medium text-gray-700 mb-1">Product Category</label>
|
103 |
+
<select id="category" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
104 |
+
<option>Brake Pads</option>
|
105 |
+
<option selected>Oil Filters</option>
|
106 |
+
<option>Air Filters</option>
|
107 |
+
<option>Spark Plugs</option>
|
108 |
+
<option>Batteries</option>
|
109 |
+
</select>
|
110 |
+
</div>
|
111 |
+
|
112 |
+
<div>
|
113 |
+
<label for="region" class="block text-sm font-medium text-gray-700 mb-1">Region</label>
|
114 |
+
<select id="region" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
|
115 |
+
<option selected>National</option>
|
116 |
+
<option>Northeast</option>
|
117 |
+
<option>Southeast</option>
|
118 |
+
<option>Midwest</option>
|
119 |
+
<option>West</option>
|
120 |
+
</select>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
<button id="generateForecast" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md transition flex items-center justify-center">
|
124 |
+
<i class="fas fa-bolt mr-2"></i> Generate Forecast
|
125 |
+
</button>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<!-- Data Preview -->
|
130 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
131 |
+
<h2 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
|
132 |
+
<i class="fas fa-table mr-2 text-blue-500"></i> Data Preview
|
133 |
+
</h2>
|
134 |
+
<div class="overflow-x-auto">
|
135 |
+
<table class="min-w-full divide-y divide-gray-200">
|
136 |
+
<thead class="bg-gray-50">
|
137 |
+
<tr>
|
138 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Month</th>
|
139 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Sales</th>
|
140 |
+
</tr>
|
141 |
+
</thead>
|
142 |
+
<tbody id="dataPreview" class="bg-white divide-y divide-gray-200">
|
143 |
+
<tr><td colspan="2" class="px-4 py-4 text-sm text-gray-500 text-center">Upload data to preview</td></tr>
|
144 |
+
</tbody>
|
145 |
+
</table>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
|
150 |
+
<!-- Main Content - Results -->
|
151 |
+
<div class="lg:col-span-2 space-y-6">
|
152 |
+
<!-- Forecast Summary -->
|
153 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
154 |
+
<div class="flex justify-between items-center mb-6">
|
155 |
+
<h2 class="text-xl font-semibold text-gray-800 flex items-center">
|
156 |
+
<i class="fas fa-chart-bar mr-2 text-blue-500"></i> Forecast Summary
|
157 |
+
</h2>
|
158 |
+
<div class="flex space-x-2">
|
159 |
+
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1 rounded-md text-sm flex items-center">
|
160 |
+
<i class="fas fa-download mr-1"></i> Export
|
161 |
+
</button>
|
162 |
+
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1 rounded-md text-sm flex items-center">
|
163 |
+
<i class="fas fa-print mr-1"></i> Print
|
164 |
+
</button>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
|
168 |
+
<!-- Key Metrics -->
|
169 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
170 |
+
<div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
|
171 |
+
<p class="text-sm text-blue-600 font-medium">Projected Growth</p>
|
172 |
+
<p class="text-2xl font-bold text-blue-800">+12.5%</p>
|
173 |
+
<p class="text-xs text-blue-500">vs previous period</p>
|
174 |
+
</div>
|
175 |
+
<div class="bg-green-50 p-4 rounded-lg border border-green-100">
|
176 |
+
<p class="text-sm text-green-600 font-medium">Market Coverage</p>
|
177 |
+
<p class="text-2xl font-bold text-green-800">78%</p>
|
178 |
+
<p class="text-xs text-green-500">of vehicle parc</p>
|
179 |
+
</div>
|
180 |
+
<div class="bg-purple-50 p-4 rounded-lg border border-purple-100">
|
181 |
+
<p class="text-sm text-purple-600 font-medium">Potential Revenue</p>
|
182 |
+
<p class="text-2xl font-bold text-purple-800">$2.4M</p>
|
183 |
+
<p class="text-xs text-purple-500">next 12 months</p>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
|
187 |
+
<!-- Chart -->
|
188 |
+
<div class="chart-container mb-6">
|
189 |
+
<canvas id="forecastChart"></canvas>
|
190 |
+
</div>
|
191 |
+
|
192 |
+
<!-- Coverage Gaps -->
|
193 |
+
<div>
|
194 |
+
<h3 class="font-medium text-gray-700 mb-3 flex items-center">
|
195 |
+
<i class="fas fa-exclamation-triangle mr-2 text-yellow-500"></i> Coverage Gaps
|
196 |
+
</h3>
|
197 |
+
<div class="overflow-x-auto">
|
198 |
+
<table class="min-w-full divide-y divide-gray-200">
|
199 |
+
<thead class="bg-gray-50">
|
200 |
+
<tr>
|
201 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Vehicle Make</th>
|
202 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Model</th>
|
203 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Year Range</th>
|
204 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Parc Size</th>
|
205 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Current Coverage</th>
|
206 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase">Potential</th>
|
207 |
+
</tr>
|
208 |
+
</thead>
|
209 |
+
<tbody id="coverageGaps" class="bg-white divide-y divide-gray-200">
|
210 |
+
<tr class="highlight-cell">
|
211 |
+
<td class="px-4 py-3 text-sm font-medium text-gray-900">Honda</td>
|
212 |
+
<td class="px-4 py-3 text-sm text-gray-500">Accord</td>
|
213 |
+
<td class="px-4 py-3 text-sm text-gray-500">2018-2022</td>
|
214 |
+
<td class="px-4 py-3 text-sm text-gray-500">1,240,000</td>
|
215 |
+
<td class="px-4 py-3 text-sm text-red-500 font-medium">32%</td>
|
216 |
+
<td class="px-4 py-3 text-sm text-green-600 font-medium">$420K</td>
|
217 |
+
</tr>
|
218 |
+
<tr>
|
219 |
+
<td class="px-4 py-3 text-sm font-medium text-gray-900">Toyota</td>
|
220 |
+
<td class="px-4 py-3 text-sm text-gray-500">Camry</td>
|
221 |
+
<td class="px-4 py-3 text-sm text-gray-500">2017-2021</td>
|
222 |
+
<td class="px-4 py-3 text-sm text-gray-500">1,150,000</td>
|
223 |
+
<td class="px-4 py-3 text-sm text-yellow-500 font-medium">58%</td>
|
224 |
+
<td class="px-4 py-3 text-sm text-green-600 font-medium">$310K</td>
|
225 |
+
</tr>
|
226 |
+
<tr class="highlight-cell">
|
227 |
+
<td class="px-4 py-3 text-sm font-medium text-gray-900">Ford</td>
|
228 |
+
<td class="px-4 py-3 text-sm text-gray-500">F-150</td>
|
229 |
+
<td class="px-4 py-3 text-sm text-gray-500">2015-2020</td>
|
230 |
+
<td class="px-4 py-3 text-sm text-gray-500">2,850,000</td>
|
231 |
+
<td class="px-4 py-3 text-sm text-red-500 font-medium">28%</td>
|
232 |
+
<td class="px-4 py-3 text-sm text-green-600 font-medium">$780K</td>
|
233 |
+
</tr>
|
234 |
+
</tbody>
|
235 |
+
</table>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
|
240 |
+
<!-- Recommendations -->
|
241 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
242 |
+
<h2 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
|
243 |
+
<i class="fas fa-lightbulb mr-2 text-yellow-500"></i> Strategic Recommendations
|
244 |
+
</h2>
|
245 |
+
|
246 |
+
<div class="space-y-4">
|
247 |
+
<div class="flex items-start">
|
248 |
+
<div class="flex-shrink-0 bg-yellow-100 p-2 rounded-full mr-3">
|
249 |
+
<i class="fas fa-box-open text-yellow-600"></i>
|
250 |
+
</div>
|
251 |
+
<div>
|
252 |
+
<h4 class="font-medium text-gray-800">Expand Product Line</h4>
|
253 |
+
<p class="text-sm text-gray-600">Develop oil filters for Honda Accord 2018-2022 models to capture estimated $420K in potential revenue from this segment.</p>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
|
257 |
+
<div class="flex items-start">
|
258 |
+
<div class="flex-shrink-0 bg-blue-100 p-2 rounded-full mr-3">
|
259 |
+
<i class="fas fa-percentage text-blue-600"></i>
|
260 |
+
</div>
|
261 |
+
<div>
|
262 |
+
<h4 class="font-medium text-gray-800">Promotional Campaign</h4>
|
263 |
+
<p class="text-sm text-gray-600">Target Ford F-150 owners with special bundle offers to increase market penetration from current 28% to at least 45%.</p>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
|
267 |
+
<div class="flex items-start">
|
268 |
+
<div class="flex-shrink-0 bg-green-100 p-2 rounded-full mr-3">
|
269 |
+
<i class="fas fa-store text-green-600"></i>
|
270 |
+
</div>
|
271 |
+
<div>
|
272 |
+
<h4 class="font-medium text-gray-800">Distribution Strategy</h4>
|
273 |
+
<p class="text-sm text-gray-600">Prioritize partnerships with retailers in regions with high concentrations of under-served vehicle models.</p>
|
274 |
+
</div>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
</div>
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
</main>
|
281 |
+
|
282 |
+
<!-- Footer -->
|
283 |
+
<footer class="bg-gray-800 text-white py-6">
|
284 |
+
<div class="container mx-auto px-4">
|
285 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
286 |
+
<div class="mb-4 md:mb-0">
|
287 |
+
<p class="text-sm">© 2023 AutoParts Forecast Pro. All rights reserved.</p>
|
288 |
+
</div>
|
289 |
+
<div class="flex space-x-4">
|
290 |
+
<a href="#" class="text-gray-300 hover:text-white transition">
|
291 |
+
<i class="fab fa-facebook-f"></i>
|
292 |
+
</a>
|
293 |
+
<a href="#" class="text-gray-300 hover:text-white transition">
|
294 |
+
<i class="fab fa-twitter"></i>
|
295 |
+
</a>
|
296 |
+
<a href="#" class="text-gray-300 hover:text-white transition">
|
297 |
+
<i class="fab fa-linkedin-in"></i>
|
298 |
+
</a>
|
299 |
+
</div>
|
300 |
+
</div>
|
301 |
+
</div>
|
302 |
+
</footer>
|
303 |
+
</div>
|
304 |
+
|
305 |
+
<!-- Chart.js -->
|
306 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
307 |
+
<script>
|
308 |
+
document.addEventListener('DOMContentLoaded', function() {
|
309 |
+
// Initialize chart
|
310 |
+
const ctx = document.getElementById('forecastChart').getContext('2d');
|
311 |
+
const forecastChart = new Chart(ctx, {
|
312 |
+
type: 'line',
|
313 |
+
data: {
|
314 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
315 |
+
datasets: [
|
316 |
+
{
|
317 |
+
label: 'Historical Sales',
|
318 |
+
data: [120, 135, 142, 148, 155, 162, 158, 165, 172, 180, 188, 195],
|
319 |
+
borderColor: '#9CA3AF',
|
320 |
+
backgroundColor: 'transparent',
|
321 |
+
borderWidth: 2,
|
322 |
+
borderDash: [5, 5],
|
323 |
+
tension: 0.1
|
324 |
+
},
|
325 |
+
{
|
326 |
+
label: 'Forecasted Sales',
|
327 |
+
data: [195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305],
|
328 |
+
borderColor: '#3B82F6',
|
329 |
+
backgroundColor: 'transparent',
|
330 |
+
borderWidth: 3,
|
331 |
+
tension: 0.1
|
332 |
+
}
|
333 |
+
]
|
334 |
+
},
|
335 |
+
options: {
|
336 |
+
responsive: true,
|
337 |
+
maintainAspectRatio: false,
|
338 |
+
plugins: {
|
339 |
+
legend: {
|
340 |
+
position: 'top',
|
341 |
+
},
|
342 |
+
tooltip: {
|
343 |
+
mode: 'index',
|
344 |
+
intersect: false,
|
345 |
+
}
|
346 |
+
},
|
347 |
+
scales: {
|
348 |
+
y: {
|
349 |
+
beginAtZero: false,
|
350 |
+
title: {
|
351 |
+
display: true,
|
352 |
+
text: 'Sales Volume'
|
353 |
+
}
|
354 |
+
}
|
355 |
+
}
|
356 |
+
}
|
357 |
+
});
|
358 |
+
|
359 |
+
// File upload preview
|
360 |
+
document.getElementById('salesData').addEventListener('change', function(e) {
|
361 |
+
const file = e.target.files[0];
|
362 |
+
if (file) {
|
363 |
+
// Simulate data processing
|
364 |
+
setTimeout(() => {
|
365 |
+
const previewBody = document.getElementById('dataPreview');
|
366 |
+
previewBody.innerHTML = `
|
367 |
+
<tr>
|
368 |
+
<td class="px-4 py-2 text-sm font-medium text-gray-900">Jan 2023</td>
|
369 |
+
<td class="px-4 py-2 text-sm text-gray-500">120</td>
|
370 |
+
</tr>
|
371 |
+
<tr>
|
372 |
+
<td class="px-4 py-2 text-sm font-medium text-gray-900">Feb 2023</td>
|
373 |
+
<td class="px-4 py-2 text-sm text-gray-500">135</td>
|
374 |
+
</tr>
|
375 |
+
<tr>
|
376 |
+
<td class="px-4 py-2 text-sm font-medium text-gray-900">Mar 2023</td>
|
377 |
+
<td class="px-4 py-2 text-sm text-gray-500">142</td>
|
378 |
+
</tr>
|
379 |
+
<tr>
|
380 |
+
<td class="px-4 py-2 text-sm font-medium text-gray-900">Apr 2023</td>
|
381 |
+
<td class="px-4 py-2 text-sm text-gray-500">148</td>
|
382 |
+
</tr>
|
383 |
+
<tr>
|
384 |
+
<td class="px-4 py-2 text-sm font-medium text-gray-900">May 2023</td>
|
385 |
+
<td class="px-4 py-2 text-sm text-gray-500">155</td>
|
386 |
+
</tr>
|
387 |
+
`;
|
388 |
+
}, 1000);
|
389 |
+
}
|
390 |
+
});
|
391 |
+
|
392 |
+
// Generate forecast button
|
393 |
+
document.getElementById('generateForecast').addEventListener('click', function() {
|
394 |
+
// Show loading state
|
395 |
+
this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Processing...';
|
396 |
+
this.disabled = true;
|
397 |
+
|
398 |
+
// Simulate forecast generation
|
399 |
+
setTimeout(() => {
|
400 |
+
// Update chart with new data
|
401 |
+
forecastChart.data.datasets[1].data = [210, 225, 240, 255, 270, 285, 300, 315, 330, 345, 360, 375];
|
402 |
+
forecastChart.update();
|
403 |
+
|
404 |
+
// Reset button
|
405 |
+
this.innerHTML = '<i class="fas fa-check mr-2"></i> Forecast Generated';
|
406 |
+
setTimeout(() => {
|
407 |
+
this.innerHTML = '<i class="fas fa-bolt mr-2"></i> Generate Forecast';
|
408 |
+
this.disabled = false;
|
409 |
+
}, 2000);
|
410 |
+
|
411 |
+
// Show success message
|
412 |
+
const toast = document.createElement('div');
|
413 |
+
toast.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-md shadow-lg flex items-center';
|
414 |
+
toast.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Forecast successfully generated!';
|
415 |
+
document.body.appendChild(toast);
|
416 |
+
setTimeout(() => toast.remove(), 3000);
|
417 |
+
}, 2000);
|
418 |
+
});
|
419 |
+
});
|
420 |
+
</script>
|
421 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jisaacso219/auto-forecast-rev1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
422 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
I would like to build an app for the automotive aftermarket where the user provides previous sales data for a category along with data on the car parc and the app will then generate a forecast and highlight any missing coverage
|