Spaces:
Sleeping
Sleeping
Update pages/3_😡_Hate_Tweets.py
Browse files- pages/3_😡_Hate_Tweets.py +4 -4
pages/3_😡_Hate_Tweets.py
CHANGED
@@ -45,8 +45,8 @@ tweets = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/multiclas
|
|
45 |
borough = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/londonborough.geojson'
|
46 |
|
47 |
map_option = st.selectbox('Choose a Map', ('Model 1', 'Model 2'))
|
48 |
-
palette_model_1 = ["red", "blue", "green", "yellow", "purple", "orange"]
|
49 |
-
palette_model_2 = ["red", "blue", "green", "yellow", "purple"]
|
50 |
|
51 |
if map_option == 'Model 1':
|
52 |
m.add_geojson(borough, layer_name='London Boroughs')
|
@@ -55,7 +55,7 @@ if map_option == 'Model 1':
|
|
55 |
x="Longitude",
|
56 |
y="Latitude",
|
57 |
color_column='Hate Prediction',
|
58 |
-
palette="
|
59 |
spin=True,
|
60 |
add_legend=True
|
61 |
)
|
@@ -66,7 +66,7 @@ else:
|
|
66 |
x="Longitude",
|
67 |
y="Latitude",
|
68 |
color_column='Hate Prediction',
|
69 |
-
palette="
|
70 |
spin=True,
|
71 |
add_legend=True
|
72 |
)
|
|
|
45 |
borough = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/londonborough.geojson'
|
46 |
|
47 |
map_option = st.selectbox('Choose a Map', ('Model 1', 'Model 2'))
|
48 |
+
#palette_model_1 = ["red", "blue", "green", "yellow", "purple", "orange"]
|
49 |
+
#palette_model_2 = ["red", "blue", "green", "yellow", "purple"]
|
50 |
|
51 |
if map_option == 'Model 1':
|
52 |
m.add_geojson(borough, layer_name='London Boroughs')
|
|
|
55 |
x="Longitude",
|
56 |
y="Latitude",
|
57 |
color_column='Hate Prediction',
|
58 |
+
palette="RedYellowBlue_11",
|
59 |
spin=True,
|
60 |
add_legend=True
|
61 |
)
|
|
|
66 |
x="Longitude",
|
67 |
y="Latitude",
|
68 |
color_column='Hate Prediction',
|
69 |
+
palette="RedYellowBlue_11",
|
70 |
spin=True,
|
71 |
add_legend=True
|
72 |
)
|