fromcarlostocosta commited on
Commit
1aed1f7
1 Parent(s): ed140c5

Add mc logo

Browse files
Files changed (2) hide show
  1. app.py +15 -1
  2. mastercard_logo.png +0 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import pandas as pd
3
  import random
4
  import plotly.express as px
5
  from geopy.distance import geodesic
 
6
 
7
  # Define the DMO names
8
  dmo_names = ["DMO" + str(i) for i in range(1, 31)]
@@ -93,4 +94,17 @@ fig = px.scatter_mapbox(df, lat="Latitude", lon="Longitude", hover_name="DMO", h
93
  fig.update_layout(mapbox_style="open-street-map")
94
  fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
95
 
96
- st.plotly_chart(fig, use_container_width=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  import random
4
  import plotly.express as px
5
  from geopy.distance import geodesic
6
+ from PIL import Image
7
 
8
  # Define the DMO names
9
  dmo_names = ["DMO" + str(i) for i in range(1, 31)]
 
94
  fig.update_layout(mapbox_style="open-street-map")
95
  fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
96
 
97
+ st.plotly_chart(fig, use_container_width=True)
98
+
99
+ img = Image.open('mastercard_logo.png')
100
+
101
+ col1, col2, col3 = st.beta_columns([1,6,1])
102
+
103
+ with col1:
104
+ st.write("")
105
+
106
+ with col2:
107
+ st.write("")
108
+
109
+ with col3:
110
+ st.image(img)
mastercard_logo.png ADDED