Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,13 +126,13 @@ def get_country_coordinates():
|
|
| 126 |
}
|
| 127 |
def create_topic_map(summaries):
|
| 128 |
coordinates = get_country_coordinates()
|
| 129 |
-
m = folium.Map(location=[
|
| 130 |
|
| 131 |
# Color mapping for sentiments
|
| 132 |
sentiment_colors = {
|
| 133 |
-
'
|
| 134 |
-
'
|
| 135 |
-
'
|
| 136 |
}
|
| 137 |
|
| 138 |
for summary in summaries:
|
|
|
|
| 126 |
}
|
| 127 |
def create_topic_map(summaries):
|
| 128 |
coordinates = get_country_coordinates()
|
| 129 |
+
m = folium.Map(location=[27.0, 42.0], zoom_start=5)
|
| 130 |
|
| 131 |
# Color mapping for sentiments
|
| 132 |
sentiment_colors = {
|
| 133 |
+
'LABEL_1': 'green', # Positive
|
| 134 |
+
'LABEL_0': 'red', # Negative
|
| 135 |
+
'LABEL_2': 'blue' # Neutral
|
| 136 |
}
|
| 137 |
|
| 138 |
for summary in summaries:
|