fouadmahmoud283-ai commited on
Commit
766feee
·
1 Parent(s): 90cbac0

fixing camera n1235

Browse files
Files changed (2) hide show
  1. requirements.txt +2 -1
  2. src/streamlit_app.py +5 -5
requirements.txt CHANGED
@@ -12,4 +12,5 @@ seaborn
12
  ultralytics
13
  av
14
  aiortc
15
- requests
 
 
12
  ultralytics
13
  av
14
  aiortc
15
+ requests
16
+ tqdm
src/streamlit_app.py CHANGED
@@ -112,9 +112,9 @@ if 'demo_selected' not in st.session_state:
112
 
113
  # Demo images URLs (publicly accessible images)
114
  DEMO_IMAGES = {
115
- "Indoor Scene": "https://images.unsplash.com/photo-1555992336-fb0d29498b13?w=800&q=80", # Office/indoor
116
- "Outdoor Scene": "https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=800&q=80", # Street scene
117
- "Crowded Area": "https://images.unsplash.com/photo-1528543606781-2f6e6857f318?w=800&q=80" # Crowded place
118
  }
119
 
120
  def load_demo_image(demo_name):
@@ -426,7 +426,7 @@ def main():
426
 
427
  with col1:
428
  st.markdown("#### 📸 Original Image")
429
- st.image(image, use_column_width=True)
430
 
431
  # Load model
432
  if st.session_state.model is None:
@@ -443,7 +443,7 @@ def main():
443
  with col2:
444
  st.markdown("#### 🎯 Detection Results")
445
  if rendered_img is not None:
446
- st.image(rendered_img, use_column_width=True)
447
 
448
  # Generate navigation advice
449
  advice, safety_level = get_navigation_advice(detections, image.width)
 
112
 
113
  # Demo images URLs (publicly accessible images)
114
  DEMO_IMAGES = {
115
+ "Indoor Scene": "https://plus.unsplash.com/premium_photo-1661346079168-5152a94fee62?q=80&w=869&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", # Office/indoor
116
+ "Outdoor Scene": "https://images.unsplash.com/photo-1767034241658-0319e450c0eb?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", # Street scene
117
+ "Crowded Area": "https://images.unsplash.com/photo-1723930298143-48843627a478?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" # Crowded place
118
  }
119
 
120
  def load_demo_image(demo_name):
 
426
 
427
  with col1:
428
  st.markdown("#### 📸 Original Image")
429
+ st.image(image, width=500)
430
 
431
  # Load model
432
  if st.session_state.model is None:
 
443
  with col2:
444
  st.markdown("#### 🎯 Detection Results")
445
  if rendered_img is not None:
446
+ st.image(rendered_img, width=500)
447
 
448
  # Generate navigation advice
449
  advice, safety_level = get_navigation_advice(detections, image.width)