TroglodyteDerivations commited on
Commit
5b7ba35
verified
1 Parent(s): b6aebcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -22
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import plotly.express as px
4
- import folium
5
- from streamlit_folium import st_folium
6
 
7
  # Set page title and layout
8
  st.set_page_config(page_title="An谩lisis de Datos de Uber", layout="wide")
@@ -118,7 +117,7 @@ st.write(f"5. Ubicaci贸n con el m谩ximo de recogidas de Uber: {max_location}")
118
 
119
  # Load and display videos
120
  st.subheader("Videos de An谩lisis")
121
- video_files = [f'analisis_video_{i}.mp4' for i in range(1, 11)] # Generate video filenames
122
 
123
  for video_file in video_files:
124
  try:
@@ -127,22 +126,3 @@ for video_file in video_files:
127
  st.video(video_bytes)
128
  except FileNotFoundError:
129
  st.warning(f"Archivo de video {video_file} no encontrado.")
130
-
131
- # Create and display Folium map
132
- st.subheader("Mapa de Recogidas de Uber")
133
-
134
- # Create a Folium map centered on New York City
135
- m = folium.Map(location=[40.7128, -74.0060], zoom_start=12)
136
-
137
- # Add pickup locations to the map
138
- for index, row in uber.iterrows():
139
- folium.CircleMarker(
140
- location=[row['Lat'], row['Lon']], # Replace with actual latitude and longitude columns
141
- radius=3,
142
- color='blue',
143
- fill=True,
144
- fill_color='blue'
145
- ).add_to(m)
146
-
147
- # Display the map in Streamlit
148
- st_folium(m, width=700, height=500)
 
1
  import streamlit as st
2
  import pandas as pd
3
  import plotly.express as px
4
+
 
5
 
6
  # Set page title and layout
7
  st.set_page_config(page_title="An谩lisis de Datos de Uber", layout="wide")
 
117
 
118
  # Load and display videos
119
  st.subheader("Videos de An谩lisis")
120
+ video_files = [f'analisis_video_{i}.mp4' for i in range(1, 10)] # Generate video filenames
121
 
122
  for video_file in video_files:
123
  try:
 
126
  st.video(video_bytes)
127
  except FileNotFoundError:
128
  st.warning(f"Archivo de video {video_file} no encontrado.")