Spaces:
Sleeping
Sleeping
Yunus Serhat Bıçakçı
commited on
Commit
·
51129a6
1
Parent(s):
11cf8c1
update
Browse files- pages/3_😡_Hate_Tweets.py +5 -7
pages/3_😡_Hate_Tweets.py
CHANGED
|
@@ -26,9 +26,7 @@ please_note = '<p style="color:Red; font-weight:bold;">Please note that the info
|
|
| 26 |
|
| 27 |
st.markdown(
|
| 28 |
"""
|
| 29 |
-
The interactive map illustrate a hate crime tweets in London boroughs for the month of December 2022. [TweetNLP](https://arxiv.org/pdf/2206.14774.pdf) and [
|
| 30 |
-
models have been utilized for hate speech detection.
|
| 31 |
-
|
| 32 |
"""
|
| 33 |
)
|
| 34 |
st.markdown(please_note, unsafe_allow_html=True)
|
|
@@ -40,12 +38,12 @@ st.markdown(
|
|
| 40 |
|
| 41 |
# add whitebox tools to the map
|
| 42 |
m = leafmap.Map(center=[51.50, -0.1], zoom=10)
|
| 43 |
-
|
| 44 |
-
borough = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/londonborough.geojson'
|
| 45 |
-
|
| 46 |
-
tweets2 = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/multiclass_latest_latlng.csv'
|
| 47 |
borough2 = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/londonborough.geojson'
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
map_option = st.selectbox('Choose a Map', ('Model 1', 'Model 2'))
|
| 50 |
|
| 51 |
if map_option == 'Model 1':
|
|
|
|
| 26 |
|
| 27 |
st.markdown(
|
| 28 |
"""
|
| 29 |
+
The interactive map illustrate a hate crime tweets in London boroughs for the month of December 2022. Model 1 is the latest model from [TweetNLP](https://arxiv.org/pdf/2206.14774.pdf) and [CardiffNLP](https://huggingface.co/cardiffnlp/twitter-roberta-base-hate-multiclass-latest), and Model 2 is an older version of Model 1, owned by [Dimosthenis Antypas](https://huggingface.co/antypasd/). Both models have been utilized for hate speech detection.
|
|
|
|
|
|
|
| 30 |
"""
|
| 31 |
)
|
| 32 |
st.markdown(please_note, unsafe_allow_html=True)
|
|
|
|
| 38 |
|
| 39 |
# add whitebox tools to the map
|
| 40 |
m = leafmap.Map(center=[51.50, -0.1], zoom=10)
|
| 41 |
+
tweets2 = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/London2022DecHateTweetsLatLong.csv'
|
|
|
|
|
|
|
|
|
|
| 42 |
borough2 = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/londonborough.geojson'
|
| 43 |
|
| 44 |
+
tweets = 'https://raw.githubusercontent.com/yunusserhat/data/main/data/multiclass_latest_latlng.csv'
|
| 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 |
|
| 49 |
if map_option == 'Model 1':
|