Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,14 +12,14 @@ warnings.filterwarnings('ignore')
|
|
12 |
events={}
|
13 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
14 |
for nation in nations:
|
15 |
-
with open('
|
16 |
events[nation] = json.load(json_data)
|
17 |
|
18 |
# loading the match data
|
19 |
matches={}
|
20 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
21 |
for nation in nations:
|
22 |
-
with open('
|
23 |
matches[nation] = json.load(json_data)
|
24 |
|
25 |
# loading the players data
|
|
|
12 |
events={}
|
13 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
14 |
for nation in nations:
|
15 |
+
with open('events/events_%s.json' %nation) as json_data:
|
16 |
events[nation] = json.load(json_data)
|
17 |
|
18 |
# loading the match data
|
19 |
matches={}
|
20 |
nations = ['Italy','England','Germany','France','Spain','European_Championship','World_Cup']
|
21 |
for nation in nations:
|
22 |
+
with open('matches/matches_%s.json' %nation) as json_data:
|
23 |
matches[nation] = json.load(json_data)
|
24 |
|
25 |
# loading the players data
|