AlBaraa63 commited on
Commit
117534d
·
verified ·
1 Parent(s): 0120377

Upload 10 files

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. app.py +75 -8
  3. test_samples/garbage.mp4 +3 -0
.gitattributes CHANGED
@@ -40,3 +40,4 @@ HF_Deploy/media/garbage_7.jpg filter=lfs diff=lfs merge=lfs -text
40
  HF_Deploy/media/garbage_8.jpg filter=lfs diff=lfs merge=lfs -text
41
  HF_Deploy/media/garbage_9.jpg filter=lfs diff=lfs merge=lfs -text
42
  HF_Deploy/media/garbage.mp4 filter=lfs diff=lfs merge=lfs -text
 
 
40
  HF_Deploy/media/garbage_8.jpg filter=lfs diff=lfs merge=lfs -text
41
  HF_Deploy/media/garbage_9.jpg filter=lfs diff=lfs merge=lfs -text
42
  HF_Deploy/media/garbage.mp4 filter=lfs diff=lfs merge=lfs -text
43
+ test_samples/garbage.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -141,47 +141,114 @@ def main():
141
  initial_sidebar_state="auto" # Auto-collapse sidebar on mobile
142
  )
143
 
144
- # Custom CSS - Mobile Friendly
145
  st.markdown("""
146
  <style>
 
147
  .main-header {
148
  font-size: clamp(1.5rem, 5vw, 3rem);
149
  color: #2E7D32;
150
  text-align: center;
151
  margin-bottom: 0;
152
- padding: 0.5rem;
 
 
153
  }
154
  .sub-header {
155
  text-align: center;
156
  color: #666;
157
- margin-bottom: 1rem;
158
- font-size: clamp(0.8rem, 2vw, 1rem);
159
  padding: 0 1rem;
 
160
  }
161
  .metric-card {
162
- background: #f0f2f6;
163
- padding: 1rem;
164
- border-radius: 0.5rem;
165
  margin: 0.5rem 0;
 
 
 
 
 
 
166
  }
167
  .stButton>button {
168
  width: 100%;
169
  background-color: #2E7D32;
170
  color: white;
171
- padding: 0.5rem 1rem;
172
  font-size: clamp(0.9rem, 2vw, 1rem);
 
 
 
 
 
 
 
 
 
173
  }
174
  /* Center Streamlit tab labels */
175
  div[data-baseweb="tab-list"] {
176
  justify-content: center !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  }
178
  /* Mobile responsive adjustments */
179
  @media (max-width: 768px) {
180
  .main-header {
181
  font-size: 2rem;
 
182
  }
183
  .sub-header {
184
  font-size: 0.85rem;
 
 
 
 
185
  }
186
  /* Make columns stack on mobile */
187
  [data-testid="column"] {
 
141
  initial_sidebar_state="auto" # Auto-collapse sidebar on mobile
142
  )
143
 
144
+ # Custom CSS - Responsive Design (Desktop + Mobile)
145
  st.markdown("""
146
  <style>
147
+ /* Base Styles - Desktop First */
148
  .main-header {
149
  font-size: clamp(1.5rem, 5vw, 3rem);
150
  color: #2E7D32;
151
  text-align: center;
152
  margin-bottom: 0;
153
+ padding: 1rem;
154
+ font-weight: 700;
155
+ letter-spacing: -0.5px;
156
  }
157
  .sub-header {
158
  text-align: center;
159
  color: #666;
160
+ margin-bottom: 2rem;
161
+ font-size: clamp(0.8rem, 2vw, 1.1rem);
162
  padding: 0 1rem;
163
+ line-height: 1.6;
164
  }
165
  .metric-card {
166
+ background: linear-gradient(135deg, #f0f2f6 0%, #e8eaf0 100%);
167
+ padding: 1.5rem;
168
+ border-radius: 0.75rem;
169
  margin: 0.5rem 0;
170
+ box-shadow: 0 2px 8px rgba(0,0,0,0.08);
171
+ transition: transform 0.2s ease;
172
+ }
173
+ .metric-card:hover {
174
+ transform: translateY(-2px);
175
+ box-shadow: 0 4px 12px rgba(0,0,0,0.12);
176
  }
177
  .stButton>button {
178
  width: 100%;
179
  background-color: #2E7D32;
180
  color: white;
181
+ padding: 0.75rem 1.5rem;
182
  font-size: clamp(0.9rem, 2vw, 1rem);
183
+ border-radius: 0.5rem;
184
+ font-weight: 600;
185
+ transition: all 0.3s ease;
186
+ border: none;
187
+ }
188
+ .stButton>button:hover {
189
+ background-color: #1B5E20;
190
+ box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
191
+ transform: translateY(-1px);
192
  }
193
  /* Center Streamlit tab labels */
194
  div[data-baseweb="tab-list"] {
195
  justify-content: center !important;
196
+ gap: 0.5rem;
197
+ }
198
+ div[data-baseweb="tab-list"] button {
199
+ font-weight: 600;
200
+ padding: 0.75rem 1.5rem;
201
+ border-radius: 0.5rem 0.5rem 0 0;
202
+ }
203
+ /* Desktop enhancements (large screens) */
204
+ @media (min-width: 1024px) {
205
+ .main-header {
206
+ font-size: 3.5rem;
207
+ margin-bottom: 0.5rem;
208
+ }
209
+ .sub-header {
210
+ font-size: 1.2rem;
211
+ margin-bottom: 2.5rem;
212
+ }
213
+ section[data-testid="stSidebar"] {
214
+ padding: 2rem 1.5rem;
215
+ }
216
+ /* Better spacing for metrics on desktop */
217
+ [data-testid="metric-container"] {
218
+ padding: 1rem;
219
+ background: #f8f9fa;
220
+ border-radius: 0.5rem;
221
+ border: 1px solid #e0e0e0;
222
+ }
223
+ /* Add subtle animations */
224
+ .stImage {
225
+ transition: transform 0.3s ease;
226
+ }
227
+ .stImage:hover {
228
+ transform: scale(1.02);
229
+ }
230
+ }
231
+ /* Tablet adjustments */
232
+ @media (max-width: 1023px) and (min-width: 769px) {
233
+ .main-header {
234
+ font-size: 2.5rem;
235
+ }
236
+ .sub-header {
237
+ font-size: 1rem;
238
+ }
239
  }
240
  /* Mobile responsive adjustments */
241
  @media (max-width: 768px) {
242
  .main-header {
243
  font-size: 2rem;
244
+ padding: 0.5rem;
245
  }
246
  .sub-header {
247
  font-size: 0.85rem;
248
+ margin-bottom: 1rem;
249
+ }
250
+ .metric-card {
251
+ padding: 1rem;
252
  }
253
  /* Make columns stack on mobile */
254
  [data-testid="column"] {
test_samples/garbage.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e4af014d786e49bb1ae83ff83b111357627268f14548146d4e9a6606cb06f22
3
+ size 21584804