Spaces:
Runtime error
Runtime error
masa729406
commited on
Commit
Β·
a8cff4f
1
Parent(s):
eabd3ce
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,10 @@ import altair
|
|
3 |
import gradio as gr
|
4 |
from math import sqrt
|
5 |
import pandas as pd
|
|
|
6 |
from datetime import datetime
|
7 |
-
|
8 |
-
matplotlib.use("Agg")
|
9 |
-
|
10 |
import matplotlib.pyplot as plt
|
11 |
-
|
12 |
|
13 |
# pip install beautifulsoup4
|
14 |
# pip install requests_html
|
@@ -21,8 +19,6 @@ load_url = "https://www.football-lab.jp/kyot/match/"
|
|
21 |
html = requests.get(load_url)
|
22 |
soup = bs(html.content, "html.parser")
|
23 |
|
24 |
-
|
25 |
-
|
26 |
url23 = 'https://www.football-lab.jp/ka-f/match/'
|
27 |
dfs23 = pd.read_html(url23)
|
28 |
url22 = 'https://www.football-lab.jp/ka-f/match/?year=2022'
|
|
|
3 |
import gradio as gr
|
4 |
from math import sqrt
|
5 |
import pandas as pd
|
6 |
+
import numpy as np
|
7 |
from datetime import datetime
|
|
|
|
|
|
|
8 |
import matplotlib.pyplot as plt
|
9 |
+
matplotlib.use("Agg")
|
10 |
|
11 |
# pip install beautifulsoup4
|
12 |
# pip install requests_html
|
|
|
19 |
html = requests.get(load_url)
|
20 |
soup = bs(html.content, "html.parser")
|
21 |
|
|
|
|
|
22 |
url23 = 'https://www.football-lab.jp/ka-f/match/'
|
23 |
dfs23 = pd.read_html(url23)
|
24 |
url22 = 'https://www.football-lab.jp/ka-f/match/?year=2022'
|